/*
Theme Name: Hampton Repair Pro
Theme URI: https://appliancerepairhampton.com
Author: Hampton Repair Pro
Author URI: https://appliancerepairhampton.com
Description: A high-converting, SEO-optimized WordPress block theme built for local home service businesses. Engineered for the Rank & Rent model — fast, mobile-first, schema-ready, and designed to dominate local search for appliance repair and similar verticals. Easily duplicatable across cities.
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hampton-repair-pro
Tags: block-theme, full-site-editing, one-column, two-columns, three-columns, custom-colors, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks
*/

/* Block theme styles are loaded from theme.json. This file exists only to provide theme metadata to WordPress. */

/* --- Lightweight global enhancements (kept tiny for Core Web Vitals) --- */

:root {
    --hrp-radius: 8px;
    --hrp-radius-lg: 16px;
    --hrp-trans: all 0.2s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

/* Sticky header */
.wp-block-template-part.site-header,
header.site-header {
    position: sticky;
    top: 0;
    z-index: 99;
    background: #fff;
    box-shadow: 0 2px 8px rgba(11, 61, 145, 0.06);
    backdrop-filter: saturate(140%) blur(8px);
}

/* Phone CTA button - high contrast */
.hrp-call-btn,
.wp-block-button.is-style-call .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #D7263D;
    color: #fff !important;
    font-weight: 700;
    padding: 0.85rem 1.4rem;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--hrp-trans);
    box-shadow: 0 4px 14px rgba(215, 38, 61, 0.35);
}

.hrp-call-btn:hover,
.wp-block-button.is-style-call .wp-block-button__link:hover {
    background: #A81B2E;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(215, 38, 61, 0.45);
}

.hrp-call-btn::before {
    content: "📞";
    font-size: 1.05em;
}

/* Service card hover */
.hrp-service-card {
    transition: var(--hrp-trans);
    border-radius: var(--hrp-radius-lg);
    overflow: hidden;
}

.hrp-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(11, 61, 145, 0.18);
}

/* Trust badges */
.hrp-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
}

.hrp-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #F7F9FC;
    border: 1px solid #E5EAF2;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0B3D91;
}

/* Mobile floating call bar */
@media (max-width: 768px) {
    .hrp-mobile-call-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #D7263D;
        color: #fff;
        text-align: center;
        padding: 0.85rem 1rem;
        font-weight: 700;
        z-index: 999;
        box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.15);
        text-decoration: none;
        display: block;
    }

    .hrp-mobile-call-bar:hover { color: #fff; }

    body { padding-bottom: 56px; }
}

/* FAQ accordion */
.hrp-faq details {
    background: #F7F9FC;
    border: 1px solid #E5EAF2;
    border-radius: var(--hrp-radius);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    transition: var(--hrp-trans);
}

.hrp-faq details[open] {
    background: #fff;
    box-shadow: 0 6px 20px rgba(11, 61, 145, 0.08);
    border-color: #0B3D91;
}

.hrp-faq summary {
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    color: #0B3D91;
    padding-right: 2rem;
    position: relative;
}

.hrp-faq summary::-webkit-details-marker { display: none; }

.hrp-faq summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    line-height: 1;
    color: #D7263D;
    transition: var(--hrp-trans);
}

.hrp-faq details[open] summary::after {
    content: "−";
}

.hrp-faq details > *:not(summary) {
    margin-top: 0.75rem;
    color: #1F2937;
}

/* Lazy reveal for images */
img[loading="lazy"] {
    transition: opacity 0.3s ease;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: #0B3D91;
    color: #fff;
    padding: 0.75rem 1rem;
    z-index: 9999;
    text-decoration: none;
}

.skip-link:focus { left: 0; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
