/*
Theme Name: J's Roofing & Services
Theme URI: https://jroofs.com/
Author: J's Roofing & Services
Description: Custom theme for jroofs.com — residential and commercial roofing in Central Florida. Pages are created automatically when the theme is activated.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: jroofs
*/

body { margin: 0; font-family: Inter, 'Segoe UI', Arial, sans-serif; color: #202052; background: #ffffff; -webkit-font-smoothing: antialiased; }
*, *::before, *::after { box-sizing: border-box; }
img, video { max-width: 100%; }
[hidden] { display: none !important; }
main { display: block; }

/* Skip link */
.jr-skip { position: absolute; left: 8px; top: -60px; z-index: 1000; background: #202052; color: #fff; padding: 10px 16px; border-radius: 4px; font-weight: 700; text-decoration: none; }
.jr-skip:focus { top: 8px; }

/* Visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #fa5c2d; outline-offset: 2px; }

/* Header: desktop vs mobile */
.jr-mob, .jr-mob-menu { display: none !important; }
@media (max-width: 1100px) {
	.jr-desk { display: none !important; }
	.jr-mob { display: flex !important; }
	.jr-mob-menu:not([hidden]) { display: flex !important; }
}

.jr-nav a { white-space: nowrap; }
@media (max-width: 1240px) { .jr-nav { font-size: 15px !important; gap: 8px 14px !important; } }

/* Footer */
@media (max-width: 640px) {
	.jr-fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 28px 16px !important; padding: 40px 16px 20px !important; }
	.jr-fbrand { grid-column: 1 / -1; }
}

/* Motion (pages add their own timing on top of this) */
@keyframes jrUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.jr-lift { transition: transform .25s ease, box-shadow .25s ease; }
.jr-lift:hover { transform: translateY(-6px); box-shadow: 0 12px 28px rgba(32, 32, 82, .16); }
.jr-js .jr-reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease-out, transform .8s ease-out; }
.jr-js .jr-reveal.jr-show { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.jr-js .jr-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
	.jr-lift, .jr-in, .jr-in2, .jr-in3 { animation: none !important; transition: none !important; }
}

/* Form messages */
.jr-notice { max-width: 1200px; margin: 16px auto 0; padding: 14px 18px; border-radius: 6px; font-weight: 600; font-size: 16px; }
.jr-notice-err { background: #fdecea; color: #8a1c12; border: 1px solid #f3b8b0; }
.jr-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
form button[disabled] { opacity: .7; cursor: wait; }

/* Generic WordPress content (blog posts, any extra page made in the editor) */
.jr-content { max-width: 820px; margin: 0 auto; padding: 64px 24px 88px; font-size: 18px; line-height: 1.65; }
.jr-content h1, .jr-content h2, .jr-content h3 { font-family: Oswald, 'Arial Narrow', Impact, sans-serif; text-transform: uppercase; line-height: 1.1; color: #202052; }
.jr-content h1 { font-size: clamp(36px, 5vw, 56px); margin: 0 0 24px; }
.jr-content a { color: #c2410c; }
.jr-content img { height: auto; border-radius: 6px; }
