/*
Theme Name: Arlington Roof Contractor Theme
Theme URI: https://arlingtonroofcontractor.com
Author: Arlington Roof Contractor
Author URI: https://arlingtonroofcontractor.com
Description: A premium, high-converting local SEO WordPress theme for Arlington Roof Contractor. Features editable pages, easy image management, and comprehensive local SEO optimization.
Version: 1.0.4
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: arlington-roof
Tags: local-business, roofing, seo-optimized, customizable
*/

*{margin:0;padding:0;box-sizing:border-box}a{color:#334155;text-decoration:none}a:hover{color:#ea580c}body{font-family:"Plus Jakarta Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;scroll-behavior:smooth;line-height:1.6}h1,h2,h3,h4,h5,h6,.heading-font{font-family:"Oswald",sans-serif;text-transform:uppercase;font-weight:700;line-height:1.2}.container{width:100%;max-width:1280px;margin:0 auto;padding:0 1rem}.text-balance{text-wrap:balance}
.arlington-contact-form{width:100%}.arlington-contact-form .form-field{margin-bottom:0}.arlington-contact-form .form-label{display:block;font-weight:600;color:#94a3b8;margin-bottom:.5rem;font-size:.75rem;text-transform:uppercase;letter-spacing:.05em;font-family:"Plus Jakarta Sans",sans-serif}.arlington-contact-form .form-input,.arlington-contact-form .form-textarea,.arlington-contact-form select{width:100%;padding:.875rem 1rem;border:1px solid #e2e8f0;border-radius:.5rem;font-size:.9375rem;font-family:"Plus Jakarta Sans",sans-serif;transition:all .2s ease;background:#fff;color:#1e293b;line-height:1.5;appearance:none;-webkit-appearance:none;-moz-appearance:none}.arlington-contact-form .form-input::placeholder,.arlington-contact-form .form-textarea::placeholder{color:#94a3b8;opacity:1}.arlington-contact-form .form-input:focus,.arlington-contact-form .form-textarea:focus,.arlington-contact-form select:focus{outline:none;border-color:#0f172a;box-shadow:0 0 0 3px rgba(15,23,42,.05)}.arlington-contact-form .form-textarea{min-height:120px;resize:vertical}.arlington-contact-form select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");background-position:right .75rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem}.arlington-contact-form .form-submit-btn{width:100%;background:#0f172a;color:#fff;padding:1rem 2rem;border:none;border-radius:.5rem;font-weight:700;font-size:.875rem;text-transform:uppercase;letter-spacing:.05em;cursor:pointer;transition:all .3s ease;font-family:"Plus Jakarta Sans",sans-serif;margin-top:.5rem}.arlington-contact-form .form-submit-btn:hover:not(:disabled){background:#1e293b;transform:translateY(-1px);box-shadow:0 4px 12px rgba(15,23,42,.3)}.arlington-contact-form .form-submit-btn:active:not(:disabled){transform:translateY(0)}.arlington-contact-form .form-submit-btn:disabled{opacity:.7;cursor:not-allowed}.arlington-contact-form .form-message{padding:1rem;border-radius:.5rem;margin-top:1rem;font-size:.875rem;font-weight:600;text-align:center}.arlington-contact-form .form-message-success{background:#f0fdf4;color:#166534;border:1px solid #86efac}.arlington-contact-form .form-message-error{background:#fef2f2;color:#991b1b;border:1px solid #fca5a5}

.glass-card{background:rgba(255,255,255,.95);backdrop-filter:blur(10px)}

/* Blog Post Content - Enhanced Heading Styles with Proper Hierarchy */
/* Maximum specificity to override Tailwind prose classes */
article .blog-post-content.prose h1,
article .blog-post-content.prose h2,
article .blog-post-content.prose h3,
article .blog-post-content.prose h4,
article .blog-post-content.prose h5,
article .blog-post-content.prose h6,
main .blog-post-content.prose h1,
main .blog-post-content.prose h2,
main .blog-post-content.prose h3,
main .blog-post-content.prose h4,
main .blog-post-content.prose h5,
main .blog-post-content.prose h6 {
    font-family: 'Oswald', sans-serif !important;
    font-weight: 900 !important;
    color: #0f172a !important;
    margin-top: 2.5rem !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
    clear: both !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* H1 - Main Section Headings - Largest (2.5em / 40px) */
.blog-post-content.prose h1 {
    font-size: 2.5em !important;
    font-size: clamp(2rem, 5vw, 2.5em) !important;
    border-bottom: 4px solid #ea580c !important;
    padding-bottom: 1rem !important;
    margin-top: 3rem !important;
    margin-bottom: 2rem !important;
    background: linear-gradient(to right, rgba(234, 88, 12, 0.15), rgba(234, 88, 12, 0.05), transparent) !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    padding-top: 0.75rem !important;
    border-radius: 4px 4px 0 0 !important;
    position: relative !important;
}

/* H2 - Major Section Headings - Large (2em / 32px) - HIGHLY VISIBLE */
article .blog-post-content.prose h2,
main .blog-post-content.prose h2 {
    font-size: 2em !important;
    font-size: clamp(1.75rem, 4vw, 2em) !important;
    border-left: 6px solid #ea580c !important;
    padding-left: 1.5rem !important;
    background: linear-gradient(to right, rgba(234, 88, 12, 0.15), rgba(234, 88, 12, 0.08), rgba(234, 88, 12, 0.03)) !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    padding-right: 1.25rem !important;
    margin-top: 2.5rem !important;
    margin-bottom: 1.5rem !important;
    border-radius: 0 6px 6px 0 !important;
    position: relative !important;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.15) !important;
}

article .blog-post-content.prose h2::before,
main .blog-post-content.prose h2::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 6px !important;
    background: #ea580c !important;
    border-radius: 0 6px 6px 0 !important;
    z-index: 1 !important;
}

/* H3 - Sub-section Headings - Medium-Large (1.75em / 28px) - HIGHLY VISIBLE */
article .blog-post-content.prose h3,
main .blog-post-content.prose h3 {
    font-size: 1.75em !important;
    font-size: clamp(1.5rem, 3.5vw, 1.75em) !important;
    color: #1e293b !important;
    border-bottom: 3px solid #ea580c !important;
    padding-bottom: 0.75rem !important;
    margin-top: 2rem !important;
    margin-bottom: 1.25rem !important;
    font-weight: 800 !important;
    padding-left: 0.75rem !important;
    background: rgba(234, 88, 12, 0.08) !important;
    padding-top: 0.5rem !important;
    padding-right: 0.5rem !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 4px rgba(234, 88, 12, 0.1) !important;
}

/* H4 - Minor Sub-headings - Medium (1.5em / 24px) - HIGHLY VISIBLE */
article .blog-post-content.prose h4,
main .blog-post-content.prose h4 {
    font-size: 1.5em !important;
    font-size: clamp(1.25rem, 3vw, 1.5em) !important;
    color: #334155 !important;
    font-weight: 800 !important;
    margin-top: 1.75rem !important;
    margin-bottom: 1rem !important;
    padding-left: 1rem !important;
    border-left: 4px solid #f97316 !important;
    background: rgba(249, 115, 22, 0.08) !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    padding-right: 0.75rem !important;
    border-radius: 0 4px 4px 0 !important;
    box-shadow: 0 1px 3px rgba(249, 115, 22, 0.1) !important;
}

/* H5 - Small Headings - Small-Medium (1.25em / 20px) - HIGHLY VISIBLE */
article .blog-post-content.prose h5,
main .blog-post-content.prose h5 {
    font-size: 1.25em !important;
    font-size: clamp(1.125rem, 2.5vw, 1.25em) !important;
    color: #475569 !important;
    font-weight: 800 !important;
    margin-top: 1.5rem !important;
    margin-bottom: 0.875rem !important;
    padding-left: 0.75rem !important;
    border-left: 3px solid #fb923c !important;
    background: rgba(251, 146, 60, 0.06) !important;
    padding-top: 0.375rem !important;
    padding-bottom: 0.375rem !important;
    padding-right: 0.5rem !important;
    border-radius: 0 3px 3px 0 !important;
}

/* H6 - Smallest Headings - Small (1em / 16px) - HIGHLY VISIBLE */
article .blog-post-content.prose h6,
main .blog-post-content.prose h6 {
    font-size: 1em !important;
    font-size: clamp(0.875rem, 2vw, 1em) !important;
    color: #64748b !important;
    font-weight: 700 !important;
    margin-top: 1.25rem !important;
    margin-bottom: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    padding-left: 0.5rem !important;
    border-left: 2px solid #fdba74 !important;
    background: rgba(253, 186, 116, 0.05) !important;
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
    padding-right: 0.5rem !important;
    border-radius: 0 2px 2px 0 !important;
}

/* Enhanced spacing after headings */
.blog-post-content.prose h1 + p,
.blog-post-content.prose h2 + p,
.blog-post-content.prose h3 + p,
.blog-post-content.prose h4 + p {
    margin-top: 1.25rem !important;
    font-size: 1.125rem !important;
}

/* Table styling enhancements */
.blog-post-content table {
    margin-top: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.blog-post-content table th {
    background: #0f172a !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    font-family: 'Oswald', sans-serif;
}

.blog-post-content table td {
    font-weight: 500;
}

.blog-post-content table tr:nth-child(even) {
    background-color: #f8fafc;
}

/* Lists after headings */
.blog-post-content h2 + ul,
.blog-post-content h2 + ol,
.blog-post-content h3 + ul,
.blog-post-content h3 + ol {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

/* Bold text in content */
.blog-post-content strong {
    color: #0f172a;
    font-weight: 800;
}

/* Ensure prose heading classes don't override */
.blog-post-content.prose .prose-headings\:font-black,
.blog-post-content.prose .prose-headings\:text-slate-900 {
    font-weight: 900 !important;
    color: #0f172a !important;
}

/* Responsive heading sizes */
@media (max-width: 768px) {
    .blog-post-content.prose h1 {
        font-size: 2rem !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    .blog-post-content.prose h2 {
        font-size: 1.75rem !important;
        padding-left: 1rem !important;
    }
    .blog-post-content.prose h3 {
        font-size: 1.5rem !important;
        padding-left: 0.5rem !important;
    }
    .blog-post-content.prose h4 {
        font-size: 1.25rem !important;
    }
    .blog-post-content.prose h5 {
        font-size: 1.125rem !important;
    }
    .blog-post-content.prose h6 {
        font-size: 1rem !important;
    }
}

/* Blog post FAQ – <details>/<summary>, no JS */
#blog-faq .blog-faq-details summary::-webkit-details-marker { display: none; }
#blog-faq .blog-faq-details summary::marker { content: ''; display: none; }
#blog-faq .blog-faq-details[open] .blog-faq-chevron { transform: rotate(180deg); }
#blog-faq .blog-faq-answer p { margin-bottom: 0.75em; }
#blog-faq .blog-faq-answer p:last-child { margin-bottom: 0; }

/* Header logo – reserve space; logo is injected after load so no icon on first paint */
#site-header .container > div:first-child { min-height: 3.5rem; min-width: 12rem; }
@media (max-width: 1023px) {
    #site-header .container > div:first-child { min-width: 0; flex: 1 1 auto; }
    #site-header .container > div:nth-child(2) { display: none !important; }
    #site-header .container > div:last-child { flex: 0 0 auto; }
    #mobile-menu-toggle { display: flex !important; min-width: 44px; min-height: 44px; }
    #mobile-menu.hidden { display: none !important; }
    #mobile-menu:not(.hidden) { display: block !important; }
}

/* Hero and main: safe area for notched devices */
.safe-area-inset { padding-top: env(safe-area-inset-top, 0); padding-left: env(safe-area-inset-left, 0); padding-right: env(safe-area-inset-right, 0); }

/* Services: ensure comfortable padding on very small screens */
@media (max-width: 639px) {
    #services .container { padding-left: 1rem; padding-right: 1rem; }
}
#site-header #site-header-logo-link img { height: 3rem; width: auto; max-height: 3.5rem; object-fit: contain; }

/* Prevent any SVG from appearing blue or huge – explicit colors used in templates */
svg { max-width: 4rem; max-height: 4rem; }
a[href^="tel:"] svg { max-width: 2rem; max-height: 2rem; fill: #ea580c; }
main a[href^="tel:"].bg-white svg { fill: #ea580c; }
main a[href^="tel:"].text-slate-950 svg { fill: #ea580c; }
footer svg { fill: #ffffff; }
#site-header button svg { stroke: #0f172a; }
