/*
Theme Name: Nailed It Roofing
Theme URI: https://naileditroofing.pro/
Author: Nailed It Roofing
Description: A one-page lead-generation theme for Nailed It Roofing, converted from the original landing page. Hero, pain points, services, FAQ, a built-in contact form that saves leads in WordPress and emails you, a call-to-action band, and a mobile sticky call bar. Every heading, list item, phone number, image and the brand color can be edited under Appearance > Customize > Nailed It Roofing.
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: nailed-it-roofing
Tags: one-column, custom-logo, custom-menu, custom-colors, featured-images, threaded-comments, translation-ready, business
*/

/*
 * The page design lives in assets/css/site.css (carried over from the original site).
 * This file adds the WordPress-specific pieces: menus, admin bar, regular pages and posts, accessibility helpers.
 */

/* ---------- Accessibility ---------- */
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important}
.screen-reader-text:focus{background:var(--bg);border-radius:var(--radius-sm);box-shadow:var(--shadow-md);clip:auto!important;clip-path:none;color:var(--ink);display:block;font-weight:700;height:auto;left:1rem;padding:.9rem 1.2rem;top:1rem;width:auto;z-index:100000}
:focus-visible{outline:3px solid var(--brand-primary);outline-offset:2px}

/* ---------- Admin bar offset for the sticky header ---------- */
.admin-bar .hdr{top:32px}
@media (max-width:782px){.admin-bar .hdr{top:46px}}
@media (max-width:600px){.admin-bar .hdr{top:0}}

/* ---------- Header: logo + menu ---------- */
.hdr__brand .custom-logo-link{display:flex}
.hdr__brand .custom-logo{height:var(--logo-size);width:auto;object-fit:contain;border-radius:6px}
.hdr__right{display:flex;align-items:center;gap:1.4rem}
.hdr__nav ul{display:flex;gap:1.6rem;list-style:none}
.hdr__nav li{position:relative}
.hdr__nav .current-menu-item>a{color:var(--ink)}
.hdr__nav .sub-menu{display:none}
.hdr__toggle{display:none;width:44px;height:44px;border-radius:var(--radius-sm);border:1.5px solid var(--border);align-items:center;justify-content:center;flex-direction:column;gap:5px}
.hdr__toggle span:not(.screen-reader-text){display:block;width:20px;height:2px;background:var(--ink);border-radius:2px;transition:transform .2s,opacity .2s}
.hdr__toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.hdr__toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.hdr__toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
@media (min-width:860px){
	.hdr__nav .menu-item-has-children:hover>.sub-menu,
	.hdr__nav .menu-item-has-children:focus-within>.sub-menu{display:block;position:absolute;top:100%;left:-1rem;min-width:220px;background:var(--bg);border:1px solid var(--border);border-radius:var(--radius-sm);box-shadow:var(--shadow-md);padding:.6rem 1rem}
	.hdr__nav .sub-menu li{padding:.35rem 0}
}
@media (max-width:859px){
	.hdr__toggle{display:inline-flex}
	.hdr__nav.is-open{display:block;position:absolute;left:0;right:0;top:100%;background:var(--bg);border-bottom:1px solid var(--border);box-shadow:var(--shadow-md);padding:.5rem 1.25rem 1rem}
	.hdr__nav.is-open ul{flex-direction:column;gap:0}
	.hdr__nav.is-open a{display:block;padding:.75rem 0;font-weight:600;border-bottom:1px solid var(--border)}
	.hdr__nav.is-open .sub-menu{display:block;padding-left:1rem}
}
@media (max-width:560px){.has-header-menu .hdr__brand>span{display:none}}
@media (max-width:420px){.hdr__brand>span{font-size:1rem}.hdr .btn-sm{padding:.6rem .8rem;font-size:.85rem}}

/* ---------- Footer ---------- */
.ftr ul{list-style:none}
.ftr__brand{font-family:var(--font-display);font-weight:800;font-size:1.25rem;color:#fff;margin-bottom:.5rem}
.ftr__tagline{color:rgba(255,255,255,.7);font-size:.95rem;max-width:340px}
.ftr__links{display:flex;gap:1.2rem;flex-wrap:wrap}
@media (max-width:679px){body.has-sticky-cta{padding-bottom:4.6rem}}

/* ---------- Lead form messages ---------- */
.lc-form-error{grid-column:1/-1;background:var(--brand-tint-bg);color:var(--brand-primary-dark);border-radius:var(--radius-sm);padding:.8rem 1rem;font-size:.92rem;font-weight:600}
.lc-form-error[hidden]{display:none}
.form-card .wpcf7 input:not([type=submit]),.form-card .wpcf7 textarea,.form-card .wpforms-field input,.form-card .wpforms-field textarea{width:100%}

/* ---------- Regular pages, posts, archives ---------- */
.page-hero{background:var(--surface);border-bottom:1px solid var(--border);padding-block:3rem}
@media (min-width:768px){.page-hero{padding-block:4.5rem}}
.page-hero .lede{margin-top:.8rem}
.entry-content{max-width:760px;margin-inline:auto}
.entry-content>*+*{margin-top:1.15rem}
.entry-content h2,.entry-content h3,.entry-content h4{font-family:var(--font-display);font-weight:var(--display-weight);line-height:1.2;margin-top:2rem}
.entry-content h2{font-size:clamp(1.5rem,3vw,2rem)}
.entry-content h3{font-size:1.35rem}
.entry-content a{color:var(--brand-primary);text-decoration:underline;text-underline-offset:2px}
.entry-content ul,.entry-content ol{padding-left:1.4rem}
.entry-content ul{list-style:disc}
.entry-content ol{list-style:decimal}
.entry-content li+li{margin-top:.35rem}
.entry-content blockquote{border-left:4px solid var(--brand-primary);padding:.4rem 0 .4rem 1.2rem;font-size:1.1rem}
.entry-content img{border-radius:var(--radius-sm)}
.entry-content figcaption{font-size:.85rem;color:var(--muted);margin-top:.4rem;text-align:center}
.entry-content table{width:100%;border-collapse:collapse}
.entry-content th,.entry-content td{border:1px solid var(--border);padding:.6rem .8rem;text-align:left}
.entry-content .wp-block-button__link{background:var(--brand-primary);color:var(--on-primary);border-radius:var(--radius);font-family:var(--font-display);font-weight:700;text-decoration:none;padding:1rem 1.6rem}
.entry-content .alignwide{max-width:1100px;margin-inline:auto}
.entry-content .alignfull{width:100vw;max-width:100vw;margin-left:calc(50% - 50vw)}
.alignleft{float:left;margin:0 1.5rem 1rem 0}
.alignright{float:right;margin:0 0 1rem 1.5rem}
.aligncenter{margin-inline:auto;text-align:center}
.wp-caption-text,.gallery-caption{font-size:.85rem;color:var(--muted)}
.sticky,.bypostauthor{}
.post-thumb{border-radius:var(--radius-lg);overflow:hidden;margin-bottom:2rem;max-width:960px;margin-inline:auto}
.post-meta{font-size:.9rem;color:var(--muted);margin-top:.6rem}
.post-card{display:flex;flex-direction:column;padding:0;overflow:hidden}
.post-card__img img{width:100%;aspect-ratio:16/10;object-fit:cover}
.post-card__body{padding:1.5rem;display:flex;flex-direction:column;gap:.5rem;flex:1}
.post-card__more{margin-top:auto;color:var(--brand-primary);font-weight:700;font-size:.92rem}
.pagination{margin-top:3rem;display:flex;justify-content:center}
.pagination .nav-links{display:flex;gap:.5rem;flex-wrap:wrap}
.pagination .page-numbers{display:inline-flex;min-width:44px;height:44px;align-items:center;justify-content:center;border:1.5px solid var(--border);border-radius:var(--radius-sm);font-weight:700;padding:0 .8rem}
.pagination .current{background:var(--brand-primary);border-color:var(--brand-primary);color:var(--on-primary)}
.search-form{display:flex;gap:.6rem;max-width:480px;margin:1.5rem auto 0}
.search-form label{flex:1}

/* ---------- Comments ---------- */
.comments-area{max-width:760px;margin:3rem auto 0;border-top:1px solid var(--border);padding-top:2rem}
.comments-area .comment-list{list-style:none}
.comments-area .comment-body{padding:1rem 0;border-bottom:1px solid var(--border)}
.comments-area .children{list-style:none;padding-left:1.5rem}
.comment-form p{margin-bottom:1rem}
.comment-form input:not([type=submit]):not([type=checkbox]),.comment-form textarea{width:100%;background:var(--bg);border:1.5px solid var(--border);border-radius:var(--radius-sm);padding:.8rem 1rem;font:inherit}
.comment-form .submit{background:var(--brand-primary);color:var(--on-primary);border:0;border-radius:var(--radius);padding:.9rem 1.5rem;font-family:var(--font-display);font-weight:700;cursor:pointer}

/* ---------- Mobile sticky call bar: let long button labels wrap instead of being cut off ---------- */
.sticky-cta .btn{min-width:0;white-space:normal;text-align:center;line-height:1.15}
