/*
Theme Name: Zion Roofing
Author: Lighthouse WebDev
Description: A responsive block theme for Zion Roofing with editable Site Editor templates.
Version: 1.7.4
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: zion-roofing
*/
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:#102b3f;background:#f8f6f1;font-family:Arial,sans-serif}a{color:inherit}img{max-width:100%}.wp-site-blocks{padding:0}.wp-site-blocks>*{margin-block-start:0}.shell{max-width:1240px;margin:auto;padding:0 32px}.top{background:#102b3f;color:#fff;font-size:12px;padding:10px 0;letter-spacing:.6px}.top .shell{display:flex;justify-content:space-between}.brand svg{width:265px;height:102px}.brand{display:flex;align-items:center;text-decoration:none;gap:13px}.mark{font-size:44px;color:#dfbd78;line-height:1}.word{font-weight:900;font-size:32px;letter-spacing:3px;line-height:1}.word small{display:block;font-size:11px;letter-spacing:5px;margin-top:8px}header .shell{display:flex;justify-content:space-between;align-items:center;padding-top:23px;padding-bottom:23px}nav{display:flex;gap:25px;align-items:center;font-size:14px;font-weight:700}nav a{text-decoration:none}.btn,.wp-block-button__link{display:inline-block;background:#dfbd78;color:#102b3f;padding:17px 24px;border-radius:2px;text-decoration:none;font-weight:800;font-size:14px}.btn.light{background:transparent;color:#fff;border:1px solid #ffffff66}.hero{background:#102b3f;color:#fff;position:relative;overflow:hidden}.hero-grid{display:grid;grid-template-columns:1.1fr 1fr;min-height:620px;align-items:center;gap:35px}.eyebrow{font-size:12px;letter-spacing:2.5px;font-weight:800;text-transform:uppercase;color:#102b3f}.hero .eyebrow{color:#dfbd78}.hero h1{font-size:clamp(44px,5.3vw,74px);letter-spacing:-3px;line-height:1.04;margin:24px 0}.hero h1 em{font-style:normal;color:#dfbd78}.lead{font-size:18px;line-height:1.8;max-width:490px;color:#ced7dd}.actions{display:flex;flex-wrap:wrap;gap:12px;margin:30px 0}.hero-art{height:440px;position:relative;background:linear-gradient(150deg,#3c5866,#172f3e);border-radius:160px 4px 4px 4px;overflow:hidden}.hero-art svg{width:100%;height:100%}.art-caption{position:absolute;left:25px;bottom:23px;font-size:11px;letter-spacing:2px;color:#fff}.strip{background:#e9e5dc}.strip .shell{display:flex;justify-content:space-between;gap:15px;padding-top:23px;padding-bottom:23px;font-weight:700;font-size:13px}.strip span:before{content:'✓';color:#102b3f;margin-right:10px}section{padding:85px 0}h2{font-size:clamp(32px,4vw,49px);line-height:1.12;letter-spacing:-1.6px;margin:16px 0 22px}p{line-height:1.75}.section-intro{display:flex;align-items:end;justify-content:space-between;gap:40px;margin-bottom:32px}.section-intro p{max-width:390px;color:#52626d}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.card{background:#fff;padding:32px;border:1px solid #e3dfd6;border-top:4px solid #dfbd78}.num{color:#102b3f;font-size:12px;font-weight:bold;letter-spacing:2px}.card h3{font-size:23px;margin-top:30px}.card p{color:#52626d;font-size:15px}.card a{font-size:13px;font-weight:bold;text-decoration:none}.about{background:#e9e5dc}.split{display:grid;grid-template-columns:1fr 1fr;gap:85px;align-items:start}.note{border-left:3px solid #dfbd78;padding-left:25px;font-size:20px;line-height:1.65}.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:45px;margin-top:45px}.step{border-top:1px solid #b9c2c8;padding-top:20px}.step b{color:#102b3f;font-size:28px}.contact{background:#102b3f;color:white}.contact h2{max-width:600px}.contact .eyebrow{color:#dfbd78}.contact p{color:#d0d9df}.contact a.phone{font-size:34px;font-weight:bold;text-decoration:none}.hours{font-size:14px}details{padding:20px 0;border-bottom:1px solid #d6d5cf}summary{cursor:pointer;font-weight:bold}footer{padding:30px 0;background:#102b3f;color:#aab9c2;font-size:12px}footer .shell{display:flex;justify-content:space-between;gap:20px}.page-content{max-width:900px;margin:auto;padding:70px 28px}a:focus-visible,summary:focus-visible{outline:3px solid #dfbd78;outline-offset:5px}@media(max-width:800px){.shell{padding-left:22px;padding-right:22px}nav{gap:14px}nav .secondary{display:none}.hero-grid,.split{grid-template-columns:1fr;gap:30px}.hero-grid{padding-top:45px;padding-bottom:35px}.hero-art{height:300px}.hero h1{letter-spacing:-2px}.cards,.steps{grid-template-columns:1fr}.strip .shell{flex-wrap:wrap}.section-intro{display:block}section{padding:60px 0}.top .hours{display:none}header .shell{padding-top:18px;padding-bottom:18px}.word{font-size:26px}nav .btn{padding:13px 15px}footer .shell{flex-direction:column}.contact a.phone{font-size:28px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Home page refinements — October 2026 */
:root{--zion-gold:#dfbd78;--zion-navy:#102b3f;--zion-ink:#52626d}
body{line-height:1.6;-webkit-font-smoothing:antialiased}
.shell{width:100%;max-width:1240px}
a{ text-underline-offset:4px }
.skip-link{position:fixed;top:12px;left:12px;transform:translateY(-180%);background:#fff;color:#102b3f;padding:12px 20px;z-index:100000;text-decoration:none;font-weight:700}
.skip-link:focus{transform:none}
header .shell{padding-top:16px;padding-bottom:16px;gap:24px}
.brand{flex-shrink:0}.brand svg{display:block;width:220px;height:auto}
nav{gap:28px}nav .secondary{padding:10px 0;display:inline-block}
nav .secondary:hover{text-decoration:underline;text-decoration-color:#102b3f}
.btn,.wp-block-button__link{min-height:48px;padding:15px 23px;line-height:1.5;background:#dfbd78;border:1px solid transparent;border-radius:4px;transition:background .18s ease,transform .18s ease}
.btn:hover{background:#efd39b;transform:translateY(-2px)}
.btn.light:hover{background:#ffffff12;border-color:#fff}
.hero-grid{grid-template-columns:1.12fr 1fr;min-height:610px;gap:48px;padding-top:56px;padding-bottom:56px}
.hero h1{font-size:clamp(42px,5.1vw,68px);letter-spacing:-2.8px;line-height:1.08;margin:22px 0}
.hero .lead{max-width:530px;font-size:17px;line-height:1.8;color:#d5dfe5}
.hero .hours{color:#d5dfe5;font-size:13px}
.hero .actions{margin:28px 0 20px}
.hero-art{height:430px;border:1px solid #ffffff18;border-radius:140px 8px 8px 8px;box-shadow:0 28px 60px #071b2944}
.hero-art svg{display:block}
.art-caption{left:0;bottom:0;width:100%;padding:18px 22px;background:#102b3fe8;font-size:10px;letter-spacing:1.5px;line-height:1.5}
.strip .shell{display:grid;grid-template-columns:repeat(4,1fr);font-size:12px;padding-top:22px;padding-bottom:22px}
.strip span{display:flex;align-items:baseline}.strip span:before{flex-shrink:0}
section{padding:88px 0;scroll-margin-top:24px}
.section-intro{align-items:center;margin-bottom:36px}.section-intro h2{margin-bottom:0}
.section-intro>p{font-size:16px}
.card{display:flex;flex-direction:column;padding:30px;border-radius:4px;box-shadow:0 8px 28px #102b3f05}
.card h3{font-size:23px;line-height:1.25;letter-spacing:-.5px;min-height:58px;margin:26px 0 8px}
.card p{margin:8px 0 24px}.card a{margin-top:auto;display:inline-block;padding:12px 0;min-height:44px;text-underline-offset:5px}
.card a:hover{text-decoration:underline}
.split{gap:70px}.about .note{margin-top:0;font-size:23px;letter-spacing:-.3px}
.about a{display:inline-block;min-height:44px;padding:10px 0;font-weight:700}
.step h3{line-height:1.35;font-size:20px;letter-spacing:-.3px}.step p{font-size:15px;color:var(--zion-ink)}
.contact .split{align-items:center}.contact .split>div:last-child{border-left:1px solid #ffffff26;padding:15px 0 15px 44px}
.contact a.phone{display:inline-block;white-space:nowrap;font-size:clamp(24px,3vw,36px);color:#dfbd78;line-height:1.4;padding:8px 0}
details{max-width:900px}summary{font-size:17px;min-height:32px;line-height:1.6}details p{color:var(--zion-ink);max-width:760px}
footer a{display:inline-block;padding:8px 0;color:#dfbd78}
:is(a,summary):focus-visible{outline:3px solid #102b3f;outline-offset:5px}.hero :is(a,summary):focus-visible,.contact a:focus-visible{outline-color:#dfbd78}
@media(max-width:1000px){nav{gap:20px}.hero-grid{gap:30px}.hero h1{font-size:52px}.hero-art{height:390px}.strip .shell{grid-template-columns:repeat(2,1fr);gap:12px 24px}.card{padding:24px}.split{gap:40px}}
@media(max-width:800px){header .shell{flex-wrap:wrap;gap:12px;padding-top:14px;padding-bottom:14px}.brand svg{width:185px}nav{gap:18px;margin-left:auto}nav .secondary{display:inline-block}.hero-grid{grid-template-columns:1fr;min-height:auto;padding-top:44px;padding-bottom:36px;gap:30px}.hero h1{font-size:clamp(40px,7vw,58px);letter-spacing:-1.8px}.hero .lead{max-width:590px}.hero-art{height:320px;max-width:600px;width:100%}.cards,.steps{grid-template-columns:1fr}.card{padding:28px}.card h3{min-height:0;margin-top:18px}.steps{gap:28px;margin-top:30px}.split{grid-template-columns:1fr;gap:24px}.contact .split>div:last-child{border-left:0;border-top:1px solid #ffffff26;padding:24px 0 0}.section-intro>p{max-width:550px}.section-intro h2{margin-bottom:22px}section{padding:60px 0}}
@media(max-width:560px){.shell{padding-left:20px;padding-right:20px}.top{font-size:10px;letter-spacing:.7px}header .shell{justify-content:center;gap:8px}.brand svg{width:180px}nav{margin:0;width:100%;justify-content:space-between;gap:10px;font-size:12px}nav .secondary{padding:12px 0}nav .btn{font-size:12px;padding:12px 14px;min-height:44px}.hero h1{font-size:clamp(36px,9.5vw,49px);letter-spacing:-1.5px}.hero .lead{font-size:16px}.actions{flex-direction:column;align-items:stretch}.actions .btn{text-align:center}.hero-art{height:280px;border-top-left-radius:90px}.art-caption{font-size:9px;padding:14px 15px;letter-spacing:1px}.strip .shell{gap:12px 15px;font-size:11px}.strip span:before{margin-right:7px}h2{font-size:35px;letter-spacing:-1.1px}.eyebrow{font-size:10px;letter-spacing:1.8px}.card{padding:24px}.note{padding-left:18px}.contact a.phone{font-size:clamp(23px,7.4vw,32px)}footer .shell{gap:2px}}
@media(prefers-reduced-motion:reduce){.btn{transition:none}.btn:hover{transform:none}}


/* Preserve the home layout when sections are native page blocks. */
.home-content > .wp-block-post-content > *,
.home-content :where(.hero-grid,.cards,.steps,.split,.strip .shell,.actions) > *{margin-block:0}
.home-content .actions p{margin:0}
.home-content .strip p{display:flex;align-items:baseline}
.home-content .strip p:before{content:'✓';color:#102b3f;margin-right:10px;flex-shrink:0}
.home-content .step-number{color:#102b3f;font-size:28px;line-height:1.6}
.home-content .card > p:last-child{margin-top:auto;margin-bottom:0}
.home-content .card > .num{font-size:12px;color:#102b3f}
.editor-styles-wrapper .hero,.editor-styles-wrapper .contact{color:#fff}
@media(max-width:560px){.home-content .actions .btn{width:100%;text-align:center}}


/* Content imported from zionroofing.net. */
.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin:30px 0}
.project-grid>figure{margin:0!important;min-width:0}
.project-grid img{display:block;width:100%;height:290px;object-fit:cover;border-radius:5px}
.project-grid figcaption{font-size:12px;color:#52626d;padding-top:8px}
.home-content .project-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.home-content .project-grid img{height:240px}
.service-detail{padding:30px 0;border-bottom:1px solid #d6d5cf;scroll-margin-top:24px}
.page-content h1{font-size:clamp(38px,5vw,58px);letter-spacing:-1.8px;line-height:1.12}
.page-content h2{font-size:clamp(28px,3vw,38px);margin-top:32px}
.page-content .wp-block-post-content{max-width:100%}
.page-content .btn{margin:12px 0}
header nav{gap:20px}
footer .footer-links{display:flex;flex-wrap:wrap;gap:8px 20px}
@media(max-width:800px){.project-grid,.home-content .project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}header nav{flex-wrap:wrap}}
@media(max-width:560px){.project-grid,.home-content .project-grid{grid-template-columns:1fr}.project-grid img,.home-content .project-grid img{height:auto;max-height:480px;object-fit:contain;background:#e9e5dc}header nav{justify-content:center;gap:6px 22px}header nav .btn{width:100%;text-align:center}.home-content .strip .shell{font-size:11px}}


/* Editable photos for each roofing service. */
.card .service-photo{margin:0 0 22px!important;width:100%}
.card .service-photo img{display:block;width:100%;height:190px;object-fit:cover;border-radius:3px}
.service-detail{display:flow-root}
.service-detail .service-photo{float:right;width:42%;margin:0 0 22px 28px!important}
.service-detail .service-photo img{display:block;width:100%;height:260px;object-fit:cover;border-radius:4px}
@media(max-width:800px){.card .service-photo img{height:240px}}
@media(max-width:560px){.card .service-photo img{height:210px}.service-detail .service-photo{float:none;width:100%;margin:0 0 22px!important}.service-detail .service-photo img{height:230px}}


/* Real project photo, editable in Pages > Home. */
.hero .hero-photo{margin:0!important;width:100%;max-width:none}
.hero .hero-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 65%}
.hero .hero-photo figcaption{position:absolute;bottom:0;left:0;width:100%;margin:0;padding:18px 22px;background:#102b3fe8;color:#fff;font-size:10px;letter-spacing:1.5px;line-height:1.5;text-align:left}
@media(max-width:560px){.hero .hero-photo figcaption{padding:14px 15px;font-size:9px;letter-spacing:1px}}


/* Larger editable feature text with a seamless marquee and gentle flash. */
.home-content .strip{position:relative;overflow:hidden}
.home-content .strip .shell{font-size:clamp(18px,1.7vw,24px);font-weight:800;line-height:1.4}
.home-content .strip.has-feature-marquee{padding-bottom:24px}
.feature-marquee{display:flex;width:max-content;animation:zion-feature-scroll 32s linear infinite;will-change:transform}
.home-content .strip .feature-marquee>.shell{display:flex;flex:0 0 auto;align-items:center;justify-content:space-around;width:max-content;min-width:100vw;max-width:none;margin:0;padding:24px 40px;gap:72px}
.home-content .strip .feature-marquee p{margin:0;white-space:nowrap;animation:zion-feature-flash 2.8s ease-in-out infinite}
.home-content .strip .feature-marquee p:before{color:#102b3f;margin-right:14px}
.feature-motion-toggle{position:absolute;right:16px;bottom:5px;min-height:24px;padding:1px 10px;border:1px solid #b7ad98;border-radius:3px;background:#f8f6f1;color:#102b3f;font:700 11px/1.4 Arial,sans-serif;cursor:pointer}
.feature-motion-toggle:focus-visible{outline:3px solid #102b3f;outline-offset:2px}
.strip:is(:hover,:focus-within,.is-paused) .feature-marquee,.strip:is(:hover,:focus-within,.is-paused) .feature-marquee p{animation-play-state:paused}
@keyframes zion-feature-scroll{to{transform:translateX(-50%)}}
@keyframes zion-feature-flash{0%,100%{opacity:1;color:#102b3f}50%{opacity:.65;color:#102b3f}}
@media(max-width:560px){.home-content .strip .shell{font-size:19px}.home-content .strip .feature-marquee>.shell{gap:42px;padding:20px 26px}.feature-marquee{animation-duration:28s}}
@media(prefers-reduced-motion:reduce){.feature-marquee,.home-content .strip .feature-marquee p{animation:none!important;transform:none!important;opacity:1!important;color:#102b3f!important}.home-content .strip.has-feature-marquee{padding-bottom:0}.home-content .strip .feature-marquee>.shell{display:flex;flex-wrap:wrap;gap:16px 24px;width:100%;min-width:0;padding:24px}.home-content .strip .feature-marquee{width:100%}.home-content .strip .feature-marquee p{white-space:normal}.feature-marquee>[aria-hidden="true"],.feature-motion-toggle{display:none!important}}


/* Trim unused top and bottom space from the navy logo. */
.brand .zion-brand-logo,.hero .hero-logo-overlay img{aspect-ratio:1.9;height:auto!important;object-fit:cover;object-position:center}

/* Consistent logo, navigation, and button palette. */
:root{--zion-button-gold:#dfbd78;--zion-button-hover:#efd39b;--zion-navy:#102b3f}
.btn,.btn.light,.wp-block-button__link,.wp-site-blocks button,.wp-site-blocks input[type="submit"],header nav a.secondary{background:var(--zion-button-gold);color:var(--zion-navy);border:1px solid var(--zion-button-gold);border-radius:4px;text-decoration:none}
header nav a.secondary{padding:11px 14px;line-height:1.5;min-height:44px;text-align:center}
.btn:hover,.btn.light:hover,.wp-block-button__link:hover,.wp-site-blocks button:hover,.wp-site-blocks input[type="submit"]:hover,header nav a.secondary:hover{background:var(--zion-button-hover);border-color:var(--zion-button-hover);color:var(--zion-navy);text-decoration:none}
:is(.btn,.wp-block-button__link,header nav a.secondary,.wp-site-blocks button,.wp-site-blocks input[type="submit"]):focus-visible{outline:3px solid var(--zion-navy);outline-offset:3px}
.hero :is(.btn,.wp-block-button__link):focus-visible,.contact :is(.btn,.wp-block-button__link):focus-visible{outline-color:var(--zion-button-gold)}
@media(max-width:560px){header nav{gap:8px}header nav a.secondary{padding:10px 12px;flex:1 1 calc(50% - 8px)}}

/* Site-wide palette: soft gold, navy, cream, and readable neutral copy. */
:root{--zion-gold:#dfbd78;--zion-cream:#f8f6f1;--zion-navy:#102b3f}
.card{border-top-color:var(--zion-gold)}
.card a,.about a,.page-content a:not(.btn):not(.wp-block-button__link){color:var(--zion-navy);text-decoration-color:var(--zion-gold)}
.card a:hover,.about a:hover,.page-content a:not(.btn):hover{text-decoration:underline;text-decoration-color:var(--zion-gold)}
.note,.step,.service-detail,details{border-color:var(--zion-gold)}
footer{background:var(--zion-navy);color:var(--zion-cream)}footer a{color:var(--zion-gold)}
.strip,.about{background:#f0eadf}

/* Navy background and readable content on interior pages. */
body.page:not(.home),body.page:not(.home) .wp-site-blocks{background-color:#162c3e}
body.page:not(.home) main.page-content{color:#f8f6f1}
body.page:not(.home) main.page-content :is(h1,h2,h3,h4,summary){color:inherit}
body.page:not(.home) .page-content :is(.eyebrow,figcaption){color:#dfbd78}
body.page:not(.home) .page-content a:not(.btn):not(.wp-block-button__link):not(.zion-inquiry a){color:#dfbd78}
body.page:not(.home) .page-content :is(a,summary):not(.zion-inquiry *):focus-visible{outline-color:#dfbd78}
