/*
Theme Name: Action Plumbing
Theme URI: https://actionplumberspro.com
Author: Action Plumbing
Author URI: https://actionplumberspro.com
Description: Custom theme for Action Plumbing
Version: 1.0
*/


/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body and Layout */
html, body {
    overflow-x: hidden; /* prevent teal strip from overflow */
}

body {
    font-family: Arial, sans-serif;
    background-color: #ffffff; /* remove teal background */
    color: #0b2a2f;
    line-height: 1.6;
    padding-top: 150px; /* fallback space for taller utility header */
}

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

/* Header */
header {
    background-image: url('images/headers/ChatGPT Image May 4, 2025, 11_35_22 AM.png'); /* Use the correct path for the background image */
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: clamp(48px, 12vw, 96px) 16px; /* responsive spacing */
    position: relative;
    color: white; /* Set text color to white for contrast */
}

h1 {
    font-family: 'Roboto', Arial, sans-serif;  /* Hero headline font */
    font-weight: 700; /* Bold */
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    letter-spacing: 0.5px; /* tuned for Roboto */
    margin-top: 10px;
    line-height: 1.05;
}

header p {
    font-family: 'Roboto', Arial, sans-serif; /* Subtitle font */
    font-weight: 700; /* Bold */
    font-size: clamp(1.1rem, 3vw, 1.9rem);
    margin-bottom: 16px;
}

/* Keep sizes readable on small screens */
@media (max-width: 640px) {
    h1 { font-size: 3.2rem; }
    header p { font-size: 1.3rem; }
}

/* Utility Header */
.utility-header {
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
    position: fixed; /* always visible */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: box-shadow 200ms ease-in-out, background-color 200ms ease-in-out;
}

.utility-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    transition: padding 200ms ease-in-out;
}

/* Utility logo sizing */
.utility-logo {
    display: flex;
    align-items: center;
}

.utility-logo img {
    height: 140px; /* larger logo */
    width: auto;
    object-fit: contain;
    display: block;
    transition: height 200ms ease-in-out, transform 200ms ease-in-out;
}

.utility-email {
    color: #0b2a2f;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    word-break: break-word;
}

.utility-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.utility-nav a {
    color: #0b2a2f;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem; /* slightly bigger */
    transition: font-size 200ms ease-in-out;
}

.utility-nav a:hover { text-decoration: underline; }

.mobile-nav-wrapper {
    display: none;
}

.utility-header.expanded .utility-inner {
    padding: 18px 24px;
}

.utility-header.expanded .utility-logo img {
    height: 150px;
}

.utility-header.expanded .call-now-btn {
    padding: 12px 20px;
    font-size: 1rem;
}

.utility-header.expanded .utility-nav a {
    font-size: 1.1rem;
}

.mobile-nav-toggle {
    appearance: none;
    background: #0b2a2f;
    border: none;
    border-radius: 10px;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-weight: 700;
    font-size: 1rem;
    gap: 8px;
    padding: 10px 18px;
    transition: background-color 150ms ease-in-out, box-shadow 150ms ease-in-out;
}

.mobile-nav-toggle::after {
    content: "\25BC";
    display: inline-block;
    font-size: 0.8rem;
    line-height: 1;
    transition: transform 150ms ease;
}

.mobile-nav-toggle[aria-expanded="true"]::after {
    transform: rotate(-180deg);
}

.mobile-nav-toggle:focus-visible {
    outline: 2px solid #f0a500;
    outline-offset: 2px;
}

.mobile-nav-toggle:hover {
    background: #154147;
    box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}

.mobile-nav-menu {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
    display: none;
    flex-direction: column;
    margin-top: 10px;
    overflow: hidden;
}

.mobile-nav-menu.is-open {
    display: flex;
}

.mobile-nav-menu[hidden] {
    display: none;
}

.mobile-nav-menu a {
    color: #0b2a2f;
    font-weight: 600;
    padding: 8px 12px;
    text-decoration: none;
}

.mobile-nav-menu a + a {
    border-top: 1px solid #e5e7eb;
}

.mobile-nav-menu a:hover {
    background: #f9f6ef;
}

.top-bar {
    display: flex;
    justify-content: flex-start; /* place items closer together */
    align-items: center;
    gap: 20px;
    padding: 10px;
    position: absolute;
    width: 100%;
    top: 0;
}

.email, .phone {
    color: white;
    font-size: 1rem;
    text-decoration: none;
}

.social-media a {
    color: white;
    margin-left: 15px;
    text-decoration: none;
    font-size: 1rem;
}

.social-media a:hover {
    color: #f0a500; /* Gold for hover effect */
}

/* Call Now (top-right) */
.call-now {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* right align within header */
    gap: 4px;
}

.call-now-btn {
    background-color: #f0a500; /* yellow pill */
    color: #000;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.95rem; /* fit number comfortably */
    white-space: nowrap; /* prevent wrap */
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    border: 2px solid rgba(0,0,0,0.08);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transform-origin: center;
    transition: padding 200ms ease-in-out, font-size 200ms ease-in-out, transform 150ms ease, box-shadow 150ms ease;
}

.call-now-btn:hover {
    background-color: #e89d00;
    transform: scale(1.08);
    box-shadow: 0 6px 14px rgba(0,0,0,0.22);
}

.call-subtext {
    font-size: 0.8rem;
    color: #4b5563;
}

/* Shrink state on scroll */
.utility-header.shrink .utility-inner { padding: 6px 20px; }
.utility-header.shrink .utility-logo img { height: 96px; }
.utility-header.shrink .call-now-btn { padding: 8px 14px; font-size: 0.9rem; }
.utility-header.shrink .utility-nav a { font-size: 0.95rem; }

@media (max-width: 1024px) {
    body {
        padding-top: 140px;
    }

    .utility-header.expanded .utility-inner {
        padding: 16px 20px;
    }

    .utility-logo img {
        height: 110px;
    }

    .call-now {
        align-items: center;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 130px;
    }

    .utility-inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 12px;
    }

    .utility-logo img {
        height: 100px;
        margin: 0 auto;
    }

    .utility-email {
        order: 2;
    }

    .utility-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 10px;
    }

    .utility-nav a {
        font-size: 0.95rem;
        padding: 4px 0;
    }

    .call-now {
        order: 1;
        width: 100%;
        align-items: center;
        gap: 6px;
    }

    .call-now-btn {
        width: 100%;
        text-align: center;
        white-space: normal;
    }

    .call-subtext {
        text-align: center;
    }
}

@media (max-width: 640px) {
    body {
        padding-top: 110px;
    }

    .utility-inner {
        padding: 10px 16px;
        gap: 10px;
        position: relative;
    }

    .utility-logo img {
        height: 80px;
    }

    .utility-header.expanded .utility-logo img {
        height: 92px;
    }

    .utility-header.shrink .utility-inner {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        padding: 6px 12px;
        gap: 8px;
    }

    .utility-header.shrink .utility-logo {
        margin-right: 8px;
    }

    .utility-header.shrink .utility-logo img {
        height: 60px;
    }

    .utility-nav {
        display: none;
    }

    .mobile-nav-wrapper {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 4px;
        position: absolute;
        top: 4px;
        right: 16px;
        width: auto;
    }

    .mobile-nav-toggle {
        justify-content: center;
        min-width: 110px;
        padding: 7px 12px;
        font-size: 0.85rem;
        width: auto;
    }

    .mobile-nav-menu {
        background: #ffffff;
        margin-top: 4px;
        width: 130px;
    }

    .utility-email {
        font-size: 0.88rem;
    }

    .call-now {
        order: 2;
        width: 100%;
        align-items: center;
    }

    .call-now-btn {
        font-size: 0.9rem;
        padding: 10px 16px;
        width: 100%;
    }

    .utility-header.shrink .call-now {
        order: 2;
        width: auto;
        align-items: flex-start;
        gap: 2px;
        margin-left: auto;
    }

    .utility-header.shrink .call-now-btn {
        font-size: 0.82rem;
        padding: 8px 12px;
        width: auto;
        align-self: flex-start;
    }

    .utility-header.expanded .call-now-btn {
        font-size: 0.95rem;
        padding: 11px 18px;
    }

    .call-subtext {
        font-size: 0.75rem;
    }

    .utility-header.shrink .call-subtext {
        font-size: 0.7rem;
        text-align: left;
    }

    .utility-header.shrink .utility-email {
        order: 3;
        font-size: 0.78rem;
        align-self: flex-start;
    }

    .utility-header.shrink .mobile-nav-wrapper {
        position: static;
        margin-left: 0;
        margin-right: 0;
        align-self: flex-start;
    }

    .utility-header.shrink .mobile-nav-toggle {
        min-width: auto;
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 100px;
    }

    .utility-logo img {
        height: 72px;
    }

    .utility-header.expanded .utility-logo img {
        height: 84px;
    }

    .call-now-btn {
        font-size: 0.85rem;
        padding: 9px 14px;
    }
}


.quote-button {
    background-color: #f0a500;
    padding: 8px 20px;  /* Adjusted padding for smaller size */
    text-decoration: none;
    color: black;
    font-size: 1.2rem;
    border-radius: 50px;  /* For oval shape */
    margin-top: 20px;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    transform-origin: center;
    transition: background-color 0.3s ease, transform 150ms ease, box-shadow 150ms ease;
}

.quote-button:hover {
    background-color: #e89d00;
    transform: scale(1.08);
    box-shadow: 0 6px 14px rgba(0,0,0,0.22);
}

/* Bio Section */
.bio {
    background-color: #ffffff; /* White background */
    padding: 40px 0;
    text-align: center;
}

.bio .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.bio-text {
    flex: 1;
    padding-right: 20px;
}

.bio-text h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.bio-text p {
    font-size: 1.2rem;
    color: #333;
}

.bio-highlights {
    margin-top: 18px;
    background: #f9f6ef;
    border-radius: 12px;
    padding: 18px 20px;
    text-align: left;
    color: #0b2a2f;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.bio-highlights h3 {
    font-size: 2.2rem; /* more impact */
    line-height: 1.15;
    margin-bottom: 12px;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.5px;
}

.bio-highlights h3 .accent {
    color: #f0a500; /* brand yellow accent */
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 10px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
    font-weight: 600;
    color: #0b2a2f;
}

.bullet-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(11, 42, 47, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: #fff;
    position: relative;
    color: transparent; /* hide any stray characters */
}

.bullet-icon::before {
    content: "\2713"; /* checkmark */
    color: #0b2a2f;
    font-weight: 700;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.bio-highlights .callout {
    margin-top: 6px;
    color: #4b5563;
    font-size: 0.95rem;
}

.bio-image {
    flex: 1;
    padding-left: 20px;
}

.bio-image img {
    width: 100%;
    max-width: 320px; /* smaller portrait */
    border-radius: 8px;
}

/* Coupons Section */
.coupons {
    padding: 60px 0; /* tall band for separation */
    background-color: #388E3C; /* match footer color */
}

.coupons-inner {
    background: transparent; /* let green band surround boxes */
    border-radius: 0;
    padding: 28px; /* keep breathing room */
    max-width: 1240px;
    margin: 0 auto;
    box-shadow: none;
}

.coupons .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px; /* stronger separation between boxes */
}

.coupon-box {
    background: #fff;
    border: 2px solid #f0a500; /* solid yellow border */
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    color: #0b2a2f;
    box-shadow: 0 4px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.coupon-box:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}

.coupon-box h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: #0b2a2f;
}

.coupon-box p {
    font-size: 1rem;
    color: #333;
}

/* Services Section */
.services {
    padding: 50px 0;
    background-color: #f1f1f1;
}

/* Shared container width/centering */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Grid only inside Services */
.services .container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

@media (max-width: 1024px) {
    .services .container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .services .container {
        grid-template-columns: 1fr;
    }
}

.service-box {
    background-color: #f9f6ef; /* match bio card tone */
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    padding: 22px;
    text-align: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.2s ease-in-out;
    color: #0b2a2f; /* bio text color */
}

.service-box:hover {
    transform: scale(1.05);
}

.service-box h2 {
    font-family: 'Bebas Neue', sans-serif; /* bio heading font */
    font-size: 2.1rem;
    letter-spacing: 0.5px;
    line-height: 1.1;
    margin-bottom: 10px;
    color: #0b2a2f;
}

.service-box p {
    font-size: 1.05rem;
    color: #333;
}

/* Adjust layout for small screens */
@media (max-width: 900px) {
    .bio .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .bio-text {
        padding-right: 0;
    }

    .bio-image {
        padding-left: 0;
        display: flex;
        justify-content: center;
    }

    .bio-image img {
        max-width: 260px;
    }

    .feature-list li {
        justify-content: center;
    }
}

/* Mobile: coupons stack */
@media (max-width: 768px) {
    .coupons { padding: 32px 0; }
    .coupons-inner { padding: 16px; border-radius: 0; box-shadow: none; background: transparent; }
    .coupons .container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .coupon-box {
        padding: 20px 16px;
    }
}

/* Remove hard-coded 5-box layout; 6 boxes will flow 3x2 */
/* Quote Section */
.quote-section {
    background-color: #f0a500;
    padding: 40px 0;
    text-align: center;
}

.quote-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.quote-section p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* Quote section button: white background, black text */
.quote-section .quote-button {
    background-color: #ffffff;
    color: #000000;
    border: 2px solid rgba(0,0,0,0.08);
}

.quote-section .quote-button:hover {
    background-color: #ffffff; /* keep white on hover */
}

@media (max-width: 640px) {
    .quote-section h2 {
        font-size: 2rem;
    }

    .quote-section p {
        font-size: 1.05rem;
    }

    .quote-section .quote-button {
        display: inline-flex;
        justify-content: center;
        width: 100%;
    }
}

/* Footer */
footer {
    background-color: #388E3C;  /* Dark green color from the image */
    padding: 20px 0;
    text-align: center;
}

footer p {
    font-size: 1rem;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Testimonials Section */
.testimonials {
    background: #ffffff;
    padding: 60px 0;
}

.testimonials .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 22px;
    color: #0b2a2f;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}

.testimonial-quote {
    font-style: italic;
    margin-bottom: 12px;
    color: #333;
}

.testimonial-author {
    font-weight: 700;
}

@media (max-width: 1024px) {
    .testimonials .container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .testimonials .container {
        grid-template-columns: 1fr;
    }
}

/* Mobile Responsiveness */
/* Services: align fonts/style with bio (override duplicates above) */
.services .service-box {
    background-color: #f9f6ef;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    color: #0b2a2f;
    padding: 22px;
}

.services .service-box h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.1rem;
    letter-spacing: 0.5px;
    line-height: 1.1;
    color: #0b2a2f;
    margin-bottom: 10px;
}

.services .service-box p {
    font-size: 1.05rem;
    color: #333;
}
