/*
Theme Name: FFPS
Theme URI: https://www.familyfriendsplumbing.com
Author: Strode Media Co
Author URI: https://www.strodemedia.com
Description: A custom WordPress block theme for Family Friends Plumbing Services — a residential plumbing company in Arlington & DFW. Built for full-site editing with SEO-optimized structured data, mobile-first responsive design, and complete block editor editability.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: block-patterns, custom-logo, editor-style, full-site-editing, one-column, wide-blocks, custom-colors
Text Domain: ffps
Domain Path: /languages

This theme, like WordPress, is licensed under the GPL.
*/

/* ============================================================
   CSS Reset
   Modern, minimal reset as a foundation.
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    min-height: 100svh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    /* color / background-color は theme.json styles.color で定義 */
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

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

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

p {
    text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    text-wrap: balance;
}

button {
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

/* ============================================================
   WordPress Block Theme Foundation
   ============================================================ */

.wp-site-blocks {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
}

/*
 * .wp-site-blocks 直下 (header/main/footer) の margin だけゼロにする。
 * .is-layout-constrained / .is-layout-flow の子はリセットしない —
 */
:where(.wp-site-blocks) > * {
    margin-block-start: 0;
    margin-block-end: 0;
}

/* Navigation */
.wp-block-navigation-item a {
    text-decoration: none;
    color: inherit;
}

/* ============================================================
   Accessibility: Focus styles
   ============================================================ */

:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

a:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
    border-radius: 2px;
}

button:focus-visible,
input[type="submit"]:focus-visible,
input[type="reset"]:focus-visible,
input[type="button"]:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
    border-radius: 2px;
}

input:not([type="submit"]):not([type="reset"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 0;
    border-radius: 2px;
}

input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

/* ============================================================
   Language-based font switching
   ============================================================ */

:lang(ja),
:lang(ja) body {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
}

/* Navigation responsive open/close icons */
.wp-block-navigation__responsive-container-close svg,
.wp-block-navigation__responsive-container-open svg {
    width: 2rem;
    height: 2rem;
}

/* (blanky header styles removed - see FFPS header section below) */

/* ============================================================
   Footer
   ============================================================ */

/* Old blanky footer styles removed — see FFPS footer section below */

/* ソーシャルリンク */
.ffps-social-links.wp-block-social-links .wp-block-social-link a {
    color: #6b7a7a;
    color: var(--wp--custom--chrome--muted);
    transition: color 0.2s ease;
}

.ffps-social-links.wp-block-social-links .wp-block-social-link a:hover {
    color: #7ab0a0;
    color: var(--wp--custom--chrome--accent);
}

/* is-style-logos-only のアイコン色を currentColor で統一 */
.ffps-social-links.wp-block-social-links.is-style-logos-only .wp-block-social-link-anchor svg {
    fill: currentColor;
}

/* ============================================================
   main
   ============================================================ */
.ffps-main.wp-block-group {
    flex: 1;
    padding: 0;
    margin: 0 auto;
    width: 100%;
}

/* ============================================================
   Hero section
   ============================================================ */

.ffps-hero {
    text-align: center;
    margin-bottom: 5rem;
}

.ffps-hero-label,
.ffps-hero-label a {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #3a6060;
    color: var(--wp--preset--color--primary);
    text-decoration: none;
}

.ffps-hero-divider.wp-block-separator {
    border-color: #3a6060;
    border-color: var(--wp--preset--color--primary);
    border-top-width: 2px;
    max-width: 4rem;
    margin-inline: auto;
    opacity: 1;
}

/* ============================================================
   Featured image: fallback placeholder (no thumbnail set)
   ============================================================ */

.ffps-no-thumbnail {
    aspect-ratio: 16 / 9;
    background-color: #f2efea;
    background-color: var(--wp--preset--color--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    overflow: hidden;
}

.ffps-no-thumbnail .ffps-thumbnail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    opacity: 0.3;
    color: #3a6060;
    color: var(--wp--preset--color--primary);
}

.ffps-no-thumbnail .ffps-thumbnail-placeholder svg {
    width: 100%;
    height: 100%;
}

/* ============================================================
   Post list: front page & archive
   ============================================================ */

/* Grayscale + zoom on hover */
.ffps-monotone {
    overflow: hidden;
    border-radius: 0.25rem;
}

.ffps-monotone img {
    filter: grayscale(100%);
    transform: scale(1);
    transition: filter 0.5s ease-in-out, transform 0.7s ease;
}

.ffps-article:hover .ffps-monotone img {
    filter: grayscale(0%);
    transform: scale(1.02);
}

/* Post title hover color */
.ffps-article .wp-block-post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ffps-article:hover .wp-block-post-title a {
    color: #3a6060;
    color: var(--wp--preset--color--primary);
}

.ffps-post-excerpt .wp-block-post-excerpt__excerpt {
    padding: 0 1rem;
    color: var(--wp--preset--color--muted);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

/* Read More button */
.ffps-read-more.wp-block-read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #3a6060;
    color: var(--wp--preset--color--primary);
    border: 1px solid rgba(58, 96, 96, 0.25);
    border-radius: 0.25rem;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.ffps-read-more.wp-block-read-more:hover {
    background-color: #3a6060;
    background-color: var(--wp--preset--color--primary);
    color: #ffffff;
    color: var(--wp--preset--color--surface);
    border-color: #3a6060;
    border-color: var(--wp--preset--color--primary);
}

/* Article meta: dot separator between date and category */
.ffps-article-meta {
    display: flex;
    align-items: flex-start;
}

.ffps-article-meta .wp-block-post-terms {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ffps-article-meta .wp-block-post-date {
    flex-shrink: 0;
    white-space: nowrap;
    color: var(--wp--preset--color--muted);
    min-width: max-content;
}

.ffps-article-meta .wp-block-post-terms::before {
    content: '';
    display: block;
    width: 0.25rem;
    height: 0.25rem;
    border-radius: 50%;
    background-color: rgba(58, 96, 96, 0.3);
    flex-shrink: 0;
}

/* ============================================================
   Post list: index (text-only list)
   ============================================================ */

.ffps-list-item .wp-block-post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ffps-list-item:hover .wp-block-post-title a {
    color: #3a6060;
    color: var(--wp--preset--color--primary);
}

.ffps-list-excerpt .wp-block-post-excerpt__excerpt {
    color: var(--wp--preset--color--muted);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

/* Query pagination spacing */
.wp-block-query-pagination {
    margin-top: 3rem;
    padding: 3rem 0;
    gap: 1rem;
}

.wp-block-query-pagination .wp-block-query-pagination-numbers .page-numbers {
    margin-left: 1rem;
}

/* ============================================================
   Single post
   ============================================================ */

.ffps-single-article.wp-block-group {
    width: 100%;
    margin: 0 auto;
    max-width: var(--wp--style--global--wide-size);
}

/* Category badge */
.ffps-category-badge.wp-block-post-terms a {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background-color: rgba(58, 96, 96, 0.08);
    color: #3a6060;
    color: var(--wp--preset--color--primary);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-decoration: none;
    border-radius: 0.125rem;
}

/* Post body: serif font */
.ffps-post-content p,
.ffps-post-content li,
.ffps-post-content blockquote {
    font-family: var(--wp--preset--font-family--serif);
    font-size: 1.125rem;
    line-height: 1.8;
}

/* Pullquote / blockquote styling */
.ffps-post-content .wp-block-pullquote,
.ffps-post-content .wp-block-quote {
    border-color: #e8e4de;
    border-color: var(--wp--preset--color--border);
    font-family: var(--wp--preset--font-family--serif);
    font-style: italic;
    color: #3a6060;
    color: var(--wp--preset--color--primary);
}

.ffps-post-content.wp-block-post-content .wp-block-paragraph {
    max-width: var(--wp--style--global--wide-size);
}

/* Post navigation */
.ffps-post-nav.wp-block-post-navigation-link a {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-decoration: none;
}

.ffps-post-nav.wp-block-post-navigation-link .wp-block-post-navigation-link__label {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #6b7280;
    color: var(--wp--preset--color--muted);
    transition: color 0.2s ease;
}

.ffps-post-nav.wp-block-post-navigation-link a:hover .wp-block-post-navigation-link__label {
    color: #3a6060;
    color: var(--wp--preset--color--primary);
}

.ffps-post-nav.wp-block-post-navigation-link .wp-block-post-navigation-link__arrow {
    display: none;
}


.wp-block-separator {
    border-color: #3a6060;
    border-color: var(--wp--preset--color--primary);
    border-top-width: 2px;
    margin-inline: auto;
    opacity: 1;
    margin: 3rem 0;
}

.ffps-more-posts.wp-block-query {
    padding: 2rem 0;
}

.ffps-more-post.wp-block-group {
    border: 1px solid var(--wp--preset--color--border);
    border-radius: .5rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.ffps-more-post.wp-block-group .wp-block-post-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    min-height: calc(1.4 * 2em); /* line-height × 2行 */
}

.ffps-more-post.wp-block-group .wp-block-post-title a {
    display: block;
}

.ffps-more-post.wp-block-group .wp-block-post-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    line-height: 1.4;
    min-height: calc(1.4 * 3em); /* line-height × 2行 */
}

.wp-block-post-author {
    border: 1px solid var(--wp--preset--color--border);
    border-radius: .5rem;
    padding: 1rem;
}


/* ============================================================
   Comments
   ============================================================ */

.ffps-comments {
    margin-top: 3rem;
    margin-top: var(--wp--preset--spacing--60);
}

/* Comment list: spacing between items */
.ffps-comment-list {
    list-style: none;
}

.ffps-comment {
    padding-bottom: 1.5rem;
    padding-bottom: var(--wp--preset--spacing--40);
    margin-bottom: 1.5rem;
    margin-bottom: var(--wp--preset--spacing--40);
}

/* Avatar */
.ffps-comment-avatar {
    flex-shrink: 0;
}

.ffps-comment-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

/* Author name link */
.ffps-comment .wp-block-comment-author-name a {
    color: inherit;
    text-decoration: none;
}

.ffps-comment .wp-block-comment-author-name a:hover {
    color: #3a6060;
    color: var(--wp--preset--color--primary);
}

/* Comment content */
.ffps-comment .wp-block-comment-content p {
    line-height: 1.7;
}

/* Reply / Edit actions */
.ffps-comment-actions a {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6b7280;
    color: var(--wp--preset--color--muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ffps-comment-actions a:hover {
    color: #3a6060;
    color: var(--wp--preset--color--primary);
}

/* Nested replies: indent */
.wp-block-comment-template .wp-block-comment-template {
    margin-left: 2rem;
    padding-left: 1.5rem;
    border-left: 2px solid #e8e4de;
    border-left: 2px solid var(--wp--preset--color--border);
}

/* ============================================================
   Comment form
   ============================================================ */

.ffps-comment-form {
    margin-top: 3rem;
    margin-top: var(--wp--preset--spacing--60);
    padding-top: 3rem;
    padding-top: var(--wp--preset--spacing--60);
    border-top: 1px solid #e8e4de;
    border-top: 1px solid var(--wp--preset--color--border);
}

.ffps-comment-form .comment-reply-title {
    font-size: 1.5rem;
    font-size: var(--wp--preset--font-size--2xl);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Form fields */
.ffps-comment-form .comment-form label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6b7280;
    color: var(--wp--preset--color--muted);
    margin-bottom: 0.375rem;
}

.ffps-comment-form .comment-form input[type="text"],
.ffps-comment-form .comment-form input[type="email"],
.ffps-comment-form .comment-form input[type="url"],
.ffps-comment-form .comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e8e4de;
    border-color: var(--wp--preset--color--border);
    border-radius: 0.25rem;
    background-color: #ffffff;
    background-color: var(--wp--preset--color--white);
    font-size: 0.875rem;
    font-size: var(--wp--preset--font-size--sm);
    color: #2c3333;
    color: var(--wp--preset--color--foreground);
    transition: border-color 0.2s ease;
    line-height: 1.6;
}

.ffps-comment-form .comment-form input[type="text"]:focus,
.ffps-comment-form .comment-form input[type="email"]:focus,
.ffps-comment-form .comment-form input[type="url"]:focus,
.ffps-comment-form .comment-form textarea:focus {
    border-color: #3a6060;
    border-color: var(--wp--preset--color--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(58, 96, 96, 0.12);
}

.ffps-comment-form .comment-form textarea {
    min-height: 10rem;
    resize: vertical;
}

.ffps-comment-form .comment-form p {
    margin-bottom: 1.25rem;
}

/* Submit button */
.ffps-comment-form .comment-form .form-submit .submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #ffffff;
    background-color: #3a6060;
    background-color: var(--wp--preset--color--primary);
    border: 1px solid transparent;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.ffps-comment-form .comment-form .form-submit .submit:hover {
    background-color: #2d4d4d;
    background-color: var(--wp--preset--color--secondary);
}

/* Cookie consent checkbox */
.ffps-comment-form .comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ffps-comment-form .comment-form-cookies-consent label {
    display: inline;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
    font-size: 0.875rem;
    color: #6b7280;
    color: var(--wp--preset--color--muted);
    margin-bottom: 0;
}

/* ============================================================
   FFPS: Utility Bar (top header row)
   ============================================================ */

.ffps-utility-bar {
    background-color: #2d043c;
    color: #ffffff;
    padding: 0.25rem 1rem;
    position: relative;
    z-index: 101;
}

.ffps-utility-bar a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
}

.ffps-utility-bar .wp-block-button .wp-block-button__link,
.ffps-utility-bar .wp-block-buttons .wp-block-button__link,
.ffps-utility-bar .wp-block-button__link.wp-element-button {
    background-color: #ffc301 !important;
    color: #222222 !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 999px !important;
    padding: 0.25em 1em !important;
    font-size: 0.8rem !important;
    line-height: 1.2;
}

.ffps-utility-bar p {
    font-size: 0.75rem !important;
}

.ffps-utility-bar .wp-block-buttons .wp-block-button__link:hover {
    background-color: #e6af00;
    color: #222222;
}

/* ============================================================
   FFPS: Header (transparent, overlays hero on front page)
   ============================================================ */

.ffps-header {
    background-color: transparent;
    border-bottom: none;
    position: relative;
    z-index: 100;
}

/* On front page and hero pages, pull header row into hero with negative margin-bottom */
.home .ffps-header,
.ffps-hero-page .ffps-header {
    margin-bottom: -160px;
}

.ffps-header.wp-block-group {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.ffps-header-logo img {
    max-width: 250px;
    height: auto;
}

.ffps-header .wp-block-navigation,
.ffps-header .wp-block-navigation .has-sm-font-size,
.ffps-main-nav {
    font-family: var(--wp--preset--font-family--open-sans);
    font-weight: 800;
    font-size: 1.2rem !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ffps-header .wp-block-navigation a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.ffps-header .wp-block-group:has(.ffps-main-nav) {
    align-items: center;
}

.ffps-header .wp-block-group:has(.ffps-main-nav) > .wp-block-group {
    align-items: center;
}

.home .ffps-header .wp-block-navigation a,
.home .ffps-header .wp-block-navigation .wp-block-navigation-item__content,
.ffps-hero-page .ffps-header .wp-block-navigation a,
.ffps-hero-page .ffps-header .wp-block-navigation .wp-block-navigation-item__content {
    color: #2c2921 !important;
    text-shadow: none;
}

/* Override nav link color inside open mobile menu */
.ffps-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content,
.ffps-header .wp-block-navigation__responsive-container.has-modal-open .wp-block-navigation-item__content,
.ffps-header .wp-block-navigation__responsive-container.is-menu-open a,
.ffps-header .wp-block-navigation__responsive-container.has-modal-open a {
    color: #ffffff !important;
    text-shadow: none;
}
.ffps-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover,
.ffps-header .wp-block-navigation__responsive-container.has-modal-open .wp-block-navigation-item__content:hover,
.ffps-header .wp-block-navigation__responsive-container.is-menu-open a:hover,
.ffps-header .wp-block-navigation__responsive-container.has-modal-open a:hover {
    color: #ffc301 !important;
}

.ffps-header .wp-block-navigation a:hover {
    color: #ffc301 !important;
}

.home .ffps-header .wp-block-navigation a:hover,
.ffps-hero-page .ffps-header .wp-block-navigation a:hover {
    color: #ffffff !important;
}

/* Nav Search */
.ffps-nav-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 36px;
    flex-shrink: 0;
}

.ffps-search-toggle {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0.4em;
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease;
}

.ffps-search-toggle svg {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px;
    min-height: 28px;
}

.home .ffps-search-toggle,
.ffps-hero-page .ffps-search-toggle {
    color: #2c2921;
}

.ffps-search-toggle:hover {
    opacity: 0.8;
}

.ffps-nav-search.is-open .ffps-search-toggle {
    opacity: 0;
    pointer-events: none;
}

.ffps-search-form {
    display: flex;
    align-items: center;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    overflow: hidden;
    opacity: 0;
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
    background: #ffffff;
    border-radius: 999px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 10;
}

.ffps-nav-search.is-open .ffps-search-form {
    width: calc(100% + 500px);
    opacity: 1;
}

.ffps-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.5em 0.8em 0.5em 1.2em;
    font-size: 0.9rem;
    background: transparent;
    color: #222;
    border-radius: 999px 0 0 999px;
    min-width: 0;
}

.ffps-search-input::placeholder {
    color: #999;
}

.ffps-search-submit {
    background: none;
    border: none;
    color: #ba0597;
    cursor: pointer;
    padding: 0.5em 0.8em;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.ffps-search-submit:hover {
    color: #2fba08;
}

/* Active page link */
.ffps-header .wp-block-navigation .is-active > a,
.ffps-header .wp-block-navigation .is-active > .wp-block-navigation-item__content {
    color: #ffc301 !important;
    box-shadow: 0 2px 0 0 #ffc301;
}

.home .ffps-header .wp-block-navigation .is-active > a,
.ffps-hero-page .ffps-header .wp-block-navigation .is-active > a {
    color: #2c2921 !important;
    box-shadow: 0 2px 0 0 #2c2921;
}

/* Active link inside open mobile menu - override dark color */
.home .ffps-header .wp-block-navigation__responsive-container.is-menu-open .is-active > a,
.home .ffps-header .wp-block-navigation__responsive-container.has-modal-open .is-active > a,
.ffps-hero-page .ffps-header .wp-block-navigation__responsive-container.is-menu-open .is-active > a,
.ffps-hero-page .ffps-header .wp-block-navigation__responsive-container.has-modal-open .is-active > a {
    color: #ffc301 !important;
    box-shadow: 0 2px 0 0 #ffc301;
}

/* Nav Call Now CTA button */
@keyframes pulse-cta {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.ffps-nav-cta .wp-block-button__link,
.ffps-nav-cta .wp-block-button__link.wp-element-button {
    background: linear-gradient(135deg, #ffdb4d, #ffc301, #e6af00) !important;
    color: #222222 !important;
    border-radius: 999px !important;
    padding: 0.5em 1.4em !important;
    letter-spacing: 0.04em;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(255,195,1,0.4), inset 0 1px 0 rgba(255,255,255,0.4);
    border: 1.5px solid rgba(180,130,0,0.3) !important;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    animation: pulse-cta 2s ease-in-out infinite;
}

.ffps-nav-cta .wp-block-button__link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.ffps-nav-cta .wp-block-button__link:hover {
    background: linear-gradient(135deg, #ffe680, #ffdb4d, #ffc301) !important;
    box-shadow: 0 4px 16px rgba(255,195,1,0.5), inset 0 1px 0 rgba(255,255,255,0.5);
    animation-play-state: paused;
    transform: scale(1.05);
}

.ffps-nav-cta .wp-block-button__link:hover::before {
    left: 120%;
}

/* On non-home pages, give header the purple texture background */
body:not(.home):not(.ffps-hero-page) .ffps-header {
    background-color: #ba0597;
    background-image: url('/wp-content/uploads/2026/03/Purple-BG-01.png');
    background-size: cover;
    background-position: center;
    border-bottom: none;
}

body:not(.home):not(.ffps-hero-page) .ffps-header .wp-block-navigation a,
body:not(.home):not(.ffps-hero-page) .ffps-header .wp-block-navigation .wp-block-navigation-item__content {
    color: #ffffff !important;
}

body:not(.home):not(.ffps-hero-page) .ffps-header .wp-block-navigation a:hover,
body:not(.home):not(.ffps-hero-page) .ffps-header .wp-block-navigation .current-menu-item a {
    color: #ffc301 !important;
}

/* ============================================================
   FFPS: Footer (brown gradient matching original)
   ============================================================ */

.ffps-footer.wp-block-group {
    background: linear-gradient(160deg, #1e1e36 0%, #1a1a2e 40%, #151528 70%, #1c1c34 100%);
    color: #d0d0d0;
    border-top: none;
    padding-top: 3.5rem;
    padding-bottom: 2.5rem;
}

.ffps-footer a {
    color: #ffc301 !important;
    text-decoration: none;
}

.ffps-footer a:hover {
    color: #ffffff !important;
}

.ffps-footer-logo img {
    opacity: 0.95;
    width: 100%;
    max-width: 280px;
    height: auto;
}

.ffps-footer-divider {
    border: none !important;
    height: 1px !important;
    margin-top: 1.25rem !important;
    margin-bottom: 1.25rem !important;
    width: 100% !important;
    max-width: 100% !important;
}

.ffps-footer-tagline {
    color: #a0a0b0;
}

.ffps-footer-heading {
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif;
}

.ffps-footer-contact-list p {
    color: #d0d0d0;
}

.ffps-footer-copyright {
    background: linear-gradient(160deg, #151528 0%, #1a1a2e 100%);
}

.ffps-footer-copyright p {
    color: #707080;
    font-size: 0.75rem;
}

.ffps-footer-copyright a {
    color: #9090a0 !important;
}

.ffps-footer-copyright a:hover {
    color: #ffc301 !important;
}

.ffps-footer .wp-block-navigation a,
.ffps-footer-nav a,
.ffps-footer-link-list a {
    color: #ffc301 !important;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ffps-footer .wp-block-navigation a:hover,
.ffps-footer-nav a:hover,
.ffps-footer-link-list a:hover {
    color: #ffffff !important;
}

/* ============================================================
   FFPS: Hero Section (green gradient with dotted pattern)
   ============================================================ */

.ffps-hero-section {
    background-color: #34b10c;
    background-image: url('/wp-content/uploads/2026/03/Web-Green.png');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    padding-top: 120px;
}

.ffps-hero-cover {
    background: transparent !important;
    position: relative;
    z-index: 2;
}

.ffps-hero-cover .wp-block-cover__background {
    display: none;
}

.ffps-hero-title-img img {
    max-width: 500px;
}

.ffps-phone-img img {
    max-width: 400px;
}

.ffps-hero-mascot img {
    max-width: 500px;
    margin-left: auto;
}

.ffps-hero-mascot-col {
    align-self: flex-end !important;
}

.ffps-hero-section .has-foreground-color {
    font-size: 1.8rem !important;
    line-height: 1.4;
}

.ffps-hero-subtext {
    font-family: 'Work Sans', sans-serif !important;
    font-weight: 500 !important;
    font-style: normal !important;
}

.ffps-section-heading-img img {
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================================
   FFPS: Styled Section Headings (replaces image-based text)
   ============================================================ */

.ffps-styled-heading {
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: normal !important;
    background: linear-gradient(135deg, #ffdb4d, #ffc301, #e6af00) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-shadow: none;
}

/* H1 — Hero / page title */
h1.ffps-styled-heading {
    font-size: 4rem !important;
    line-height: 1.05 !important;
    margin-bottom: 0.5rem !important;
}

/* Hero banner title — purple gradient */
.ffps-hero-section h1.ffps-styled-heading {
    background: linear-gradient(135deg, #b7109a, #ca11e0) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* H2 — Section titles */
h2.ffps-styled-heading {
    font-size: 3rem !important;
    line-height: 1.1 !important;
    margin-bottom: 1rem !important;
}

/* H3/H4 — Global font override */
h3.wp-block-heading,
h4.wp-block-heading {
    font-weight: 900 !important;
    text-transform: uppercase;
}

/* Phone number */
.ffps-styled-heading.ffps-phone {
    font-size: 2.4rem !important;
    line-height: 1.2 !important;
}

.ffps-styled-heading.ffps-phone a {
    background: linear-gradient(135deg, #ffdb4d, #ffc301, #e6af00) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-decoration: none !important;
}

/* ============================================================
   FFPS: Check list (green checkmarks)
   ============================================================ */

.ffps-check-list {
    list-style: none;
    padding-left: 0;
}

.ffps-check-list li {
    padding: 0.5rem 0 0.5rem 2rem;
    position: relative;
    border-bottom: 1px solid #e2e2e2;
}

.ffps-check-list li:last-child {
    border-bottom: none;
}

.ffps-check-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: #2e9404;
    font-weight: 800;
    font-size: 1.2rem;
}

/* ============================================================
   FFPS: Rounded images
   ============================================================ */

.ffps-rounded-img img {
    border-radius: 12px;
}

.ffps-stretch-img,
.ffps-stretch-img img {
    height: 100%;
}

.ffps-stretch-img img {
    object-fit: cover;
    border-radius: 12px;
}

/* ============================================================
   FFPS: Why Choose Us section (purple bg with texture)
   ============================================================ */

.ffps-why-choose {
    background-color: #2d043c;
    background-image: url('/wp-content/uploads/2026/03/Purple-BG-01.png');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    position: relative;
}

.ffps-why-choose::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    pointer-events: none;
    z-index: 0;
}

.ffps-why-choose > * {
    position: relative;
    z-index: 1;
}

.ffps-mascot-accent img {
    max-width: 350px;
    margin: 0 auto;
}

.ffps-green-sep.wp-block-separator {
    border-color: #2e9404;
    max-width: 60px;
    border-top-width: 3px;
    margin: 1.5rem 0;
}

.ffps-why-item {
    padding-left: 0.5rem;
    border-left: 3px solid rgba(255, 195, 1, 0.3);
    margin-bottom: 1rem;
}

.ffps-why-item h4 {
    font-size: 1.6rem !important;
}

.ffps-why-item p {
    font-size: 1.2rem !important;
}

/* ============================================================
   FFPS: Green CTA section
   ============================================================ */

/* Services Page Hero */
.ffps-services-hero {
    background-color: transparent;
    text-align: left;
    padding: 2.5rem 2rem;
    border-bottom: 3px solid #e2e2e2;
}

.ffps-services-hero h1 {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(90deg, #2fba08, #b1ef31);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ffps-services-hero p,
.ffps-services-hero a,
.ffps-services-hero .has-white-color {
    color: #4f4f4f !important;
    -webkit-text-fill-color: #4f4f4f !important;
}

/* Service Category Cards */
.ffps-service-cards {
    background-color: transparent;
}

.ffps-service-card {
    background-color: #2e9404;
    background-image: linear-gradient(135deg, rgba(0,0,0,0.15), transparent 60%), url('/wp-content/uploads/2026/03/Web-Green.png');
    background-size: cover;
    background-position: center;
    border: none !important;
    border-radius: 14px !important;
    padding: 2rem !important;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
    color: #ffffff;
    cursor: pointer;
}

.ffps-service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(47, 186, 8, 0.2), 0 8px 16px rgba(0,0,0,0.1);
}

.ffps-service-card:hover a {
    color: #ffffff !important;
}

.ffps-card-img-placeholder {
    width: 100%;
    height: 160px;
    background-color: rgba(255,255,255,0.15);
    border-radius: 10px;
    margin-bottom: 1.25rem;
}

.ffps-card-img {
    width: 100%;
    height: 160px;
    border-radius: 10px;
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.ffps-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.ffps-area-img-placeholder {
    width: 100%;
    height: 340px;
    background-color: #e2e2e2;
    border-radius: 12px;
    overflow: hidden;
}

.ffps-area-img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

/* Area page service list cards */
.ffps-area-services .wp-block-group.has-white-background-color {
    border: 2px solid rgba(186, 5, 151, 0.25);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.ffps-area-services .wp-block-group.has-white-background-color ul {
    list-style: none;
    padding-left: 0 !important;
}

.ffps-area-services .wp-block-group.has-white-background-color ul li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.ffps-area-services .wp-block-group.has-white-background-color ul li::before {
    content: '\2714';
    position: absolute;
    left: 0;
    color: #2e9404;
    font-weight: 700;
    font-size: 1.1em;
}

/* Area page "Why Choose Us" cards */
.ffps-area-why-card {
    border: 2px solid rgba(186, 5, 151, 0.25);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.ffps-service-card h3 {
    font-weight: 900 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-transform: uppercase;
    font-size: 1.8rem !important;
    line-height: 1.1 !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.25);
    min-height: 4rem;
}

.ffps-service-card p {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 700;
}

.ffps-service-card a {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 700;
}

.ffps-service-card a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Service Detail Pages */
.ffps-service-detail {
    border-left: 4px solid #ba0597;
    padding-left: 1.5rem;
}

.ffps-service-detail-heading {
    font-family: 'Montserrat', sans-serif;
}

.ffps-service-page-cta h3 {
    font-family: 'Montserrat', sans-serif;
}

.ffps-green-cta {
    background-image: url('/wp-content/uploads/2026/03/Purple-BG-01.png');
    background-color: #ba0597;
    background-size: cover;
    background-position: center;
    color: #ffffff;
    position: relative;
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
}

.ffps-call-img img {
    max-width: 400px;
}

.ffps-cta-mascot img {
    max-width: 300px;
    margin-left: auto;
}

/* ============================================================
   FFPS: CTA Buttons
   ============================================================ */

.ffps-cta-button .wp-block-button__link,
.ffps-cta-button.wp-block-button .wp-block-button__link {
    background-color: #ffc301 !important;
    color: #222222 !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    text-decoration: none;
}

.ffps-cta-button .wp-block-button__link:hover {
    background-color: #e6af00 !important;
}

/* Duplicate service card block removed — styles consolidated above */

/* ============================================================
   FFPS: Purple Gradient Heading (contact page)
   ============================================================ */

.ffps-purple-heading {
    font-weight: 900 !important;
    text-transform: uppercase !important;
    background: linear-gradient(135deg, #df05a7, #b906c2) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Area cards on contact page */
.ffps-contact-area-card {
    border: 2px solid rgba(186, 5, 151, 0.2);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.ffps-contact-area-card ul {
    list-style: none;
    padding-left: 0 !important;
}

.ffps-contact-area-card ul li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.ffps-contact-area-card ul li::before {
    content: '\2714';
    position: absolute;
    left: 0;
    color: #2e9404;
    font-weight: 700;
    font-size: 1.1em;
}

/* ============================================================
   FFPS: Contact Form 7
   ============================================================ */

.wpcf7 {
    max-width: 700px;
    margin: 0 auto;
}

.wpcf7-form p {
    margin-bottom: 1.5rem;
}

.wpcf7-form br {
    display: block;
    margin-bottom: 0.25rem;
    content: '';
}

.wpcf7-form label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: #222222;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form select,
.wpcf7-form textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    font-family: var(--wp--preset--font-family--open-sans);
    border: 2px solid #e2e2e2;
    border-radius: 8px;
    background-color: #ffffff;
    color: #222222;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: #ba0597;
    box-shadow: 0 0 0 3px rgba(186, 5, 151, 0.12);
}

.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
    color: #999999;
    font-weight: 400;
}

.wpcf7-form textarea {
    min-height: 160px;
    resize: vertical;
}

.wpcf7-form input[type="submit"] {
    display: inline-block;
    background: linear-gradient(135deg, #ffc301, #e6af00);
    color: #222222;
    font-family: var(--wp--preset--font-family--montserrat);
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.9rem 2.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 4px 12px rgba(255, 195, 1, 0.3);
}

.wpcf7-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 195, 1, 0.4);
}

.wpcf7-form input[type="submit"]:active {
    transform: translateY(0);
}

.wpcf7-form .wpcf7-response-output {
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

.wpcf7-form .wpcf7-not-valid-tip {
    color: #d32f2f;
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

.wpcf7-form .wpcf7-not-valid {
    border-color: #d32f2f;
}

/* Align submit button to the right */
.wpcf7-form p:last-of-type {
    text-align: right;
    margin-top: 1.5rem;
}

/* ============================================================
   FFPS: Mobile Responsive
   ============================================================ */

@media screen and (max-width: 768px) {
    .ffps-utility-bar .ffps-hide-mobile {
        display: none !important;
    }

    /* Hide search and Call Now button on mobile */
    .ffps-nav-search,
    .ffps-nav-cta {
        display: none !important;
    }

    /* Tighten header padding on mobile so hamburger sits closer to edge */
    .ffps-header {
        padding-right: 16px !important;
        padding-left: 16px !important;
    }

    /* Push hamburger flush right on mobile — collapse hidden siblings and gap */
    .ffps-header .wp-block-group.is-nowrap:has(.ffps-main-nav) {
        gap: 0 !important;
    }
    .ffps-header .wp-block-group.is-nowrap > .ffps-nav-search,
    .ffps-header .wp-block-group.is-nowrap > .wp-block-buttons {
        display: none !important;
    }

    /* Ensure hamburger button is visible */
    .wp-block-navigation__responsive-container-open {
        display: flex !important;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        padding: 8px;
        flex-shrink: 0;
        background-color: #ffffff !important;
        border-radius: 8px;
        box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    }

    .wp-block-navigation__responsive-container-open svg {
        width: 24px;
        height: 24px;
        color: #2d043c;
    }

    /* Mobile overlay menu styling */
    .wp-block-navigation__responsive-container.is-menu-open,
    .wp-block-navigation__responsive-container.has-modal-open {
        background-color: #2d043c !important;
        padding: 2rem;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 100000 !important;
    }

    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close,
    .wp-block-navigation__responsive-container.has-modal-open .wp-block-navigation__responsive-container-close {
        color: #ffffff;
    }

    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content,
    .wp-block-navigation__responsive-container.has-modal-open .wp-block-navigation-item__content,
    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a,
    .wp-block-navigation__responsive-container.has-modal-open .wp-block-navigation-item a {
        color: #ffffff !important;
        font-size: 1.3rem;
        padding: 0.75rem 0;
        display: block;
    }

    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover,
    .wp-block-navigation__responsive-container.has-modal-open .wp-block-navigation-item__content:hover,
    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a:hover,
    .wp-block-navigation__responsive-container.has-modal-open .wp-block-navigation-item a:hover {
        color: #ffc301 !important;
    }

    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
    .wp-block-navigation__responsive-container.has-modal-open .wp-block-navigation__container {
        gap: 0.5rem;
    }

    /* Mobile overlay Call Now button */
    .ffps-mobile-cta {
        margin-top: 2rem;
        text-align: center;
    }
    .ffps-mobile-cta a {
        display: inline-block;
        background: linear-gradient(135deg, #ffdb4d, #ffc301, #e6af00) !important;
        color: #222222 !important;
        font-size: 1.1rem;
        font-weight: 800;
        text-transform: uppercase;
        text-decoration: none;
        padding: 0.75em 2em;
        border-radius: 999px;
        box-shadow: 0 2px 8px rgba(255,195,1,0.4);
        letter-spacing: 0.04em;
    }
    .ffps-mobile-cta a:hover {
        background: linear-gradient(135deg, #ffe680, #ffdb4d, #ffc301) !important;
    }

    .ffps-header .wp-block-site-logo img {
        max-height: 60px;
    }

    .ffps-hero-section {
        padding-top: 140px;
    }

    .home .ffps-header,
    .ffps-hero-page .ffps-header {
        margin-bottom: -120px;
    }

    .ffps-hero-section .wp-block-cover {
        min-height: auto;
    }

    .ffps-hero-title-img img {
        max-width: 100%;
    }

    .ffps-hero-mascot-col {
        display: none;
    }

    .ffps-cta-mascot-col {
        display: none;
    }

    .ffps-green-cta h3 {
        font-size: 1.5rem !important;
    }

    .ffps-mascot-accent {
        display: none;
    }

    .ffps-section-heading-img img {
        max-width: 100%;
    }

    h2.ffps-styled-heading {
        font-size: 2.2rem !important;
    }

    h1.ffps-styled-heading {
        font-size: 2.2rem !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
        hyphens: none !important;
    }

    h2.ffps-styled-heading {
        overflow-wrap: normal !important;
        word-break: normal !important;
        hyphens: none !important;
    }

    .ffps-styled-heading.ffps-phone {
        font-size: 1.8rem !important;
    }
}

@media screen and (max-width: 480px) {
    .ffps-header .wp-block-site-logo img {
        max-height: 50px;
    }

    .ffps-utility-bar .wp-block-buttons .wp-block-button__link {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }
}