
/*
Theme Name: FlowMaster Plumbing
Theme URI: https://example.com/flowmaster-plumbing
Author: Genspark
Author URI: https://www.genspark.ai/
Description: A polished plumbing services WordPress theme converted from the provided HTML landing page. Includes a custom front page, blog layouts, page template, right sidebar single posts, Customizer options, widget areas, and placeholder imagery.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flowmaster-plumbing
Tags: custom-logo, custom-menu, featured-images, blog, right-sidebar, one-column, two-columns, theme-options
*/

:root {
    --primary-blue: #0056b3;
    --secondary-blue: #003d80;
    --accent-orange: #ff8c00;
    --light-gray: #f4f4f4;
    --dark-text: #333333;
    --white: #ffffff;
    --muted-text: #6b7280;
    --border-color: #e5e7eb;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-card: 0 4px 15px rgba(0,0,0,0.1);
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.7;
    color: var(--dark-text);
    background: #fff;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
}

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

a:hover,
a:focus {
    color: var(--secondary-blue);
}

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

ul, ol {
    padding-left: 1.25rem;
}

button,
input,
select,
textarea {
    font: inherit;
}

.site-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

.container {
    width: min(100% - 2rem, var(--container-width));
    margin-inline: auto;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--secondary-blue);
    margin-bottom: 1rem;
}

.section-intro {
    max-width: 720px;
    margin: 0 auto 2.5rem;
    color: var(--muted-text);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    z-index: 9999;
    background: #000;
    color: #fff;
    padding: 0.75rem 1rem;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 78px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
}

.site-branding a {
    color: var(--primary-blue);
}

.site-title {
    font-size: 1.4rem;
    line-height: 1.1;
}

.site-description {
    font-size: 0.85rem;
    color: var(--muted-text);
}

.custom-logo-link img {
    max-height: 56px;
    width: auto;
}

.menu-toggle {
    display: none;
    border: 0;
    background: var(--primary-blue);
    color: #fff;
    border-radius: 6px;
    padding: 0.65rem 0.85rem;
    cursor: pointer;
}

.primary-navigation ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding-left: 0;
}

.primary-navigation a {
    color: var(--dark-text);
    font-weight: 600;
}

.primary-navigation .current-menu-item > a,
.primary-navigation a:hover,
.primary-navigation a:focus {
    color: var(--primary-blue);
}

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.2rem;
    border-radius: 6px;
    background: var(--accent-orange);
    color: #fff;
    font-weight: 700;
    transition: transform .25s ease, background .25s ease;
}

.header-cta:hover,
.header-cta:focus {
    color: #fff;
    background: #e67e00;
    transform: translateY(-2px);
}

/* Hero */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}

.hero-media,
.hero-media::before,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-media {
    background-size: cover;
    background-position: center;
    z-index: 0;
    transform-origin: center;
    animation: kenburns 20s infinite alternate ease-in-out;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding-block: 5rem;
    animation: fadeInUp 1.2s ease-out;
}

.hero-eyebrow {
    display: inline-block;
    background: rgba(255,255,255,0.16);
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: .02em;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.8rem);
    line-height: 1.05;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-text {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    margin-bottom: 2rem;
    max-width: 680px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.button,
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 6px;
    padding: 1rem 1.35rem;
    font-weight: 700;
    cursor: pointer;
    transition: .25s ease;
}

.button-primary,
input[type="submit"],
button[type="submit"] {
    background: var(--accent-orange);
    color: #fff;
}

.button-primary:hover,
.button-primary:focus,
input[type="submit"]:hover,
button[type="submit"]:hover {
    color: #fff;
    background: #e67e00;
    transform: translateY(-2px);
}

.button-secondary {
    background: rgba(255,255,255,0.16);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.28);
}

.button-secondary:hover,
.button-secondary:focus {
    color: #fff;
    background: rgba(255,255,255,0.24);
}

.hero-badges {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-badge {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.14);
    padding: 0.85rem 1rem;
    border-radius: 10px;
    min-width: 140px;
}

.hero-badge strong {
    display: block;
    font-size: 1.15rem;
}

/* Home Sections */
.home-section {
    padding: 5rem 0;
}

.services-section {
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.14);
}

.service-card-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.service-card-content {
    padding: 1.5rem;
    text-align: left;
}

.service-card-content h3 {
    margin-bottom: 0.6rem;
    color: var(--primary-blue);
}

.about-section {
    background: var(--light-gray);
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}

.about-image img {
    border-radius: 16px;
    box-shadow: 20px 20px 0 var(--primary-blue);
}

.check-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
}

.check-list li {
    padding-left: 1.8rem;
    position: relative;
    margin-bottom: 0.9rem;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-orange);
    font-weight: 700;
}

.cta-strip {
    background: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
    color: #fff;
}

.cta-strip .cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-strip h2 {
    color: #fff;
    margin-bottom: 0.4rem;
}

/* Content Layouts */
.page-header {
    padding: 4rem 0 2rem;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border-bottom: 1px solid var(--border-color);
}

.page-title,
.entry-title {
    color: var(--secondary-blue);
    line-height: 1.15;
}

.page-title {
    font-size: clamp(2rem, 4vw, 3rem);
}

.breadcrumb-note,
.archive-description,
.page-subtitle {
    color: var(--muted-text);
    margin-top: 0.75rem;
}

.content-area {
    padding: 4rem 0;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 2rem;
}

.content-grid.no-sidebar {
    grid-template-columns: minmax(0, 1fr);
}

.posts-grid {
    display: grid;
    gap: 1.8rem;
}

.post-card,
.entry-card,
.widget,
.comments-area {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

.post-card {
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    aspect-ratio: 16 / 8;
    object-fit: cover;
}

.post-card-content {
    padding: 1.5rem;
}

.entry-meta,
.post-meta {
    color: var(--muted-text);
    font-size: 0.95rem;
    margin-bottom: 0.85rem;
}

.entry-summary,
.entry-content,
.widget {
    color: var(--dark-text);
}

.entry-content > * + *,
.comment-content > * + * {
    margin-top: 1rem;
}

.entry-card {
    padding: 2rem;
}

.single-thumbnail {
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
}

.single-thumbnail img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.sidebar-area {
    display: grid;
    gap: 1.5rem;
    align-content: start;
}

.widget {
    padding: 1.4rem;
}

.widget-title {
    color: var(--secondary-blue);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.widget ul {
    list-style: none;
    padding-left: 0;
}

.widget li + li {
    margin-top: 0.7rem;
}

.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form label {
    flex: 1;
}

.search-field,
input[type="text"],
input[type="email"],
input[type="url"],
textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #fff;
}

textarea {
    min-height: 160px;
}

.search-submit {
    white-space: nowrap;
}

.wp-caption,
.gallery,
.alignwide,
.alignfull {
    max-width: 100%;
}

.alignleft {
    float: left;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-links,
.nav-links,
.posts-navigation,
.post-navigation {
    margin-top: 2rem;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.tags-links,
.cat-links {
    display: inline-flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag-cloud-link,
.tags-links a,
.cat-links a,
.post-categories a {
    display: inline-flex;
    padding: 0.45rem 0.75rem;
    background: #eef5ff;
    border-radius: 999px;
    font-size: 0.9rem;
}

/* Footer */
.site-footer {
    margin-top: 4rem;
    background: var(--secondary-blue);
    color: #fff;
}

.footer-top {
    padding: 4rem 0 2rem;
}

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

.site-footer a {
    color: #fff;
}

.footer-bottom {
    padding: 1.5rem 0 2rem;
    border-top: 1px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.88);
    font-size: 0.95rem;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.screen-reader-text {
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.screen-reader-text:focus {
    clip: auto !important;
    height: auto;
    width: auto;
    display: block;
    background: #f1f1f1;
    color: #000;
    left: 5px;
    top: 5px;
    z-index: 100000;
    padding: 15px 23px 14px;
}

/* WordPress blocks */
.wp-block-group,
.wp-block-columns,
.wp-block-cover,
.wp-block-image,
.wp-block-quote,
.wp-block-pullquote,
.wp-block-table,
.wp-block-embed,
.wp-block-gallery {
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
}

.wp-block-quote,
blockquote {
    border-left: 4px solid var(--accent-orange);
    padding-left: 1rem;
    color: var(--dark-text);
}

/* 404 */
.not-found {
    text-align: center;
    padding: 5rem 0;
}

.not-found p {
    color: var(--muted-text);
    margin: 1rem auto 2rem;
    max-width: 680px;
}

/* Animations */
@keyframes kenburns {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.15) translate(-2%, -2%); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image img {
        box-shadow: 12px 12px 0 var(--primary-blue);
    }
}

@media (max-width: 860px) {
    .menu-toggle {
        display: inline-flex;
    }

    .header-actions {
        display: none;
    }

    .primary-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 10px 20px rgba(0,0,0,0.08);
        padding: 1rem;
        display: none;
    }

    .primary-navigation.toggled {
        display: block;
    }

    .primary-navigation ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 75vh;
    }

    .hero-badges,
    .hero-actions,
    .footer-bottom .container,
    .cta-strip .cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .entry-card {
        padding: 1.4rem;
    }
}


/* Blog preview cards on front page */
.blog-preview-card .service-card-image {
    display: block;
    overflow: hidden;
    line-height: 0;
}

.blog-preview-card .service-card-image img {
    transition: transform 0.35s ease;
}

.blog-preview-card:hover .service-card-image img {
    transform: scale(1.04);
}

.latest-posts-section {
    background: var(--light-gray);
}
