/*
Theme Name: C&C Metal Buildings
Theme URI: https://candcconstructiontx.com/
Author: All Florida Marketing
Description: Modern, responsive WordPress theme for C&C Metal Buildings LLC.
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: candc
*/

:root{--red:#b20712;--red2:#e51b2a;--ink:#111317;--steel:#252930;--muted:#626973;--light:#f4f5f7;--white:#fff;--line:#e4e6e9;--radius:18px;--shadow:0 18px 55px rgba(17,19,23,.12)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);background:#fff;font:16px/1.65 Arial,Helvetica,sans-serif}body.menu-open{overflow:hidden}img{max-width:100%;height:auto;display:block}a{color:inherit;text-decoration:none}.container{width:min(1180px,calc(100% - 40px));margin:auto}.eyebrow{display:inline-flex;align-items:center;gap:10px;color:var(--red);font-size:13px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}.eyebrow:before{content:"";width:34px;height:3px;background:var(--red)}h1,h2,h3,h4{line-height:1.08;margin:0 0 18px;font-weight:900;letter-spacing:-.025em}h1{font-size:clamp(42px,6vw,78px)}h2{font-size:clamp(34px,4vw,52px)}h3{font-size:23px}p{margin:0 0 20px}.lead{font-size:19px;color:var(--muted)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:0 24px;border:0;border-radius:6px;background:var(--red);color:#fff;font-weight:800;text-transform:uppercase;letter-spacing:.04em;cursor:pointer;transition:.25s}.btn:hover{background:#87050d;transform:translateY(-2px)}.btn-outline{background:transparent;border:1px solid rgba(255,255,255,.6)}.btn-outline:hover{background:#fff;color:var(--ink)}
.topbar{background:#0c0d10;color:#dfe1e5;font-size:13px}.topbar .container{display:flex;justify-content:space-between;gap:20px;padding:9px 0}.topbar a:hover{color:#fff}.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.97);box-shadow:0 4px 22px rgba(0,0,0,.07)}.header-inner{height:88px;display:flex;align-items:center;gap:28px}.brand{display:flex;align-items:center;margin-right:auto}.brand img{width:132px;height:72px;object-fit:contain}.menu{display:flex;align-items:center;gap:28px;list-style:none;padding:0;margin:0}.menu a{font-size:14px;font-weight:800;text-transform:uppercase}.menu a:hover,.current-menu-item>a{color:var(--red)}.header-phone{font-weight:900;color:var(--red)}.menu-toggle{display:none;background:none;border:0;width:44px;height:44px;padding:8px}.menu-toggle span{display:block;height:3px;background:#111;margin:6px 0}
.hero{position:relative;min-height:690px;display:grid;align-items:center;overflow:hidden;background:#15171b;color:#fff}.hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(10,11,14,.94) 0%,rgba(10,11,14,.78) 44%,rgba(10,11,14,.1) 78%),url('assets/images/banner1.jpg') center/cover}.hero:after{content:"";position:absolute;left:0;bottom:0;width:48%;height:7px;background:var(--red)}.hero .container{position:relative;z-index:1}.hero-content{max-width:720px}.hero h1 span{color:#ef2938}.hero p{max-width:630px;color:#e4e6e9;font-size:20px}.actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:30px}.trust-row{display:flex;gap:28px;flex-wrap:wrap;margin-top:42px}.trust-row span{display:flex;align-items:center;gap:9px;font-weight:700}.trust-row span:before{content:"✓";display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--red)}
.stats{background:var(--red);color:#fff}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr)}.stat{padding:28px 24px;border-right:1px solid rgba(255,255,255,.25)}.stat:last-child{border:0}.stat strong{display:block;font-size:27px;line-height:1.1}.stat span{font-size:13px;text-transform:uppercase;letter-spacing:.08em}
.section{padding:100px 0}.section-head{max-width:760px;margin-bottom:44px}.split{display:grid;grid-template-columns:1fr 1fr;gap:72px;align-items:center}.media-stack{position:relative}.media-stack .main-image{width:100%;height:570px;object-fit:cover;border-radius:var(--radius)}.experience-badge{position:absolute;right:-24px;bottom:38px;background:var(--red);color:#fff;padding:24px;border-radius:12px;box-shadow:var(--shadow)}.experience-badge strong{display:block;font-size:34px}.checks{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:28px 0}.checks span{font-weight:700}.checks span:before{content:"✓";color:var(--red);font-weight:900;margin-right:8px}
.services-section{background:var(--light)}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.service-card{background:#fff;border-radius:var(--radius);overflow:hidden;box-shadow:0 8px 28px rgba(0,0,0,.07);transition:.3s}.service-card:hover{transform:translateY(-8px);box-shadow:var(--shadow)}.service-card img{width:100%;height:255px;object-fit:cover}.card-body{padding:28px}.card-body p{color:var(--muted)}.text-link{color:var(--red);font-weight:900;text-transform:uppercase;font-size:13px;letter-spacing:.06em}
.dark-section{background:var(--ink);color:#fff}.why-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:70px;align-items:center}.why-grid>img{width:100%;height:560px;object-fit:cover;border-radius:var(--radius)}.feature-list{display:grid;gap:16px}.feature{padding:22px;border:1px solid #383c43;border-radius:12px}.feature h3{font-size:19px;margin:0 0 8px}.feature p{color:#bfc3ca;margin:0}
.process-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;counter-reset:steps}.step{padding:30px;border:1px solid var(--line);border-radius:var(--radius);counter-increment:steps}.step:before{content:"0" counter(steps);display:block;color:var(--red);font-size:38px;font-weight:900;margin-bottom:25px}.step p{color:var(--muted)}
.gallery-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.gallery-grid a{display:block;overflow:hidden;border-radius:9px;background:#ddd}.gallery-grid img{width:100%;height:260px;object-fit:cover;transition:.35s}.gallery-grid a:hover img{transform:scale(1.06)}
.testimonial{max-width:850px;margin:auto;text-align:center}.testimonial blockquote{font-size:clamp(22px,3vw,34px);line-height:1.45;font-weight:700;margin:24px 0}.stars{color:#ffc107;letter-spacing:5px}.cta{position:relative;padding:85px 0;color:#fff;background:linear-gradient(90deg,rgba(178,7,18,.96),rgba(115,3,10,.9)),url('assets/images/get-a-quote-bg.jpg') center/cover}.cta-inner{display:flex;align-items:center;justify-content:space-between;gap:40px}.cta h2{max-width:750px;margin:0}.cta .btn{background:#fff;color:var(--red)}
.page-hero{padding:110px 0 75px;background:linear-gradient(90deg,rgba(11,12,15,.92),rgba(11,12,15,.6)),url('assets/images/banner2.jpg') center/cover;color:#fff}.page-hero h1{font-size:clamp(42px,5vw,65px)}.entry-content{max-width:900px;margin:auto}.entry-content ul{padding-left:20px}.entry-content li{margin:8px 0}.service-detail-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}.detail-card{padding:30px;background:var(--light);border-left:5px solid var(--red);border-radius:8px}.quote-layout{display:grid;grid-template-columns:1.25fr .75fr;gap:40px}.quote-form{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field.full{grid-column:1/-1}.field label{display:block;font-weight:800;margin-bottom:6px}.field input,.field select,.field textarea{width:100%;padding:14px 15px;border:1px solid #cfd3d8;border-radius:7px;background:#fff;font:inherit}.field textarea{min-height:130px;resize:vertical}.notice{padding:14px 18px;margin-bottom:24px;border-radius:6px;background:#e8f7ec;color:#17652a}.contact-panel{padding:32px;background:var(--ink);color:#fff;border-radius:var(--radius)}.contact-panel a{display:block;margin:12px 0}.contact-panel p{color:#c7cad0}.map{border:0;width:100%;height:360px;border-radius:var(--radius)}
.site-footer{background:#0a0b0d;color:#bbbfc6;padding:70px 0 20px}.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:60px}.footer-brand img{width:145px;background:#fff;padding:10px;border-radius:6px}.site-footer h3{color:#fff;font-size:17px;text-transform:uppercase;letter-spacing:.07em}.footer-links{list-style:none;padding:0}.footer-links li{margin:9px 0}.footer-links a:hover{color:#fff}.copyright{border-top:1px solid #282b30;margin-top:45px;padding-top:20px;font-size:13px;display:flex;justify-content:space-between}.mobile-actions{display:none}
@media(max-width:900px){.topbar{display:none}.header-inner{height:76px}.brand img{height:61px;width:112px}.menu-toggle{display:block}.primary-nav{position:fixed;inset:76px 0 0;background:#fff;transform:translateX(100%);transition:.3s;padding:30px}.menu-open .primary-nav{transform:none}.menu{display:block}.menu li{border-bottom:1px solid var(--line)}.menu a{display:block;padding:17px 5px}.header-phone,.header-inner>.btn{display:none}.hero{min-height:640px}.hero:before{background:linear-gradient(90deg,rgba(10,11,14,.92),rgba(10,11,14,.64)),url('assets/images/banner1.jpg') center/cover}.stats-grid{grid-template-columns:1fr 1fr}.stat:nth-child(2){border-right:0}.split,.why-grid,.quote-layout{grid-template-columns:1fr}.cards{grid-template-columns:1fr 1fr}.gallery-grid{grid-template-columns:repeat(3,1fr)}.footer-grid{grid-template-columns:1fr 1fr}.mobile-actions{position:fixed;display:grid;grid-template-columns:1fr 1fr;z-index:49;bottom:0;left:0;right:0}.mobile-actions a{padding:13px;text-align:center;background:var(--red);color:#fff;font-weight:800}.mobile-actions a:last-child{background:var(--ink)}body{padding-bottom:48px}}
@media(max-width:620px){.container{width:min(100% - 28px,1180px)}.section{padding:70px 0}.hero{min-height:610px}.hero h1{font-size:43px}.hero p{font-size:17px}.actions .btn{width:100%}.trust-row{gap:10px;margin-top:25px;display:grid}.stats-grid{grid-template-columns:1fr 1fr}.stat{padding:20px 14px}.stat strong{font-size:22px}.split{gap:38px}.media-stack .main-image{height:420px}.experience-badge{right:10px;bottom:15px}.checks,.cards,.process-grid,.service-detail-grid{grid-template-columns:1fr}.gallery-grid{grid-template-columns:1fr 1fr}.gallery-grid img{height:210px}.cta-inner{display:block}.cta h2{margin-bottom:28px}.quote-form{grid-template-columns:1fr}.field.full{grid-column:auto}.footer-grid{grid-template-columns:1fr;gap:30px}.copyright{display:block}.page-hero{padding:85px 0 55px}}

/* v1.1 logo and new project showcase */
.site-header{background:rgba(255,255,255,.98);box-shadow:0 5px 24px rgba(0,0,0,.08);border-bottom:3px solid var(--red)}
.header-inner{height:104px;gap:25px}
.brand{align-self:stretch;padding:7px 20px 7px 0;position:relative}
.brand:after{content:"";position:absolute;right:0;top:23px;bottom:23px;width:1px;background:#e2e4e7}
.brand img{width:174px;height:90px;object-fit:contain;filter:drop-shadow(0 4px 5px rgba(89,0,5,.12))}
.menu{gap:25px}.menu a{font-size:13px}.header-phone{white-space:nowrap}
.hero:before{background:linear-gradient(90deg,rgba(10,11,14,.95) 0%,rgba(10,11,14,.78) 44%,rgba(10,11,14,.12) 78%),url('assets/images/gallery/40x60x16-red-trim.png') center/cover}
.project-showcase{display:grid;grid-template-columns:1.15fr .85fr;grid-template-rows:280px 280px;gap:14px}
.project-showcase figure{position:relative;margin:0;overflow:hidden;border-radius:14px;background:#ddd}
.project-showcase figure:first-child{grid-row:1/3}
.project-showcase img{width:100%;height:100%;object-fit:cover;transition:.4s}
.project-showcase figure:hover img{transform:scale(1.035)}
.project-showcase figcaption{position:absolute;left:0;right:0;bottom:0;padding:42px 22px 18px;color:#fff;font-weight:800;background:linear-gradient(transparent,rgba(0,0,0,.82))}
.site-footer{border-top:5px solid var(--red)}
.footer-brand{padding-right:38px;border-right:1px solid #292c31}
.footer-brand img{width:225px;height:170px;object-fit:contain;margin:-25px 0 8px;padding:0;background:transparent;border-radius:0;filter:drop-shadow(0 7px 12px rgba(0,0,0,.35))}
.footer-brand p{max-width:430px}
@media(max-width:900px){.header-inner{height:84px}.brand{padding:5px 14px 5px 0}.brand:after{display:none}.brand img{height:76px;width:145px}.primary-nav{inset:84px 0 0}.hero:before{background:linear-gradient(90deg,rgba(10,11,14,.93),rgba(10,11,14,.58)),url('assets/images/gallery/40x60x16-red-trim.png') 60% center/cover}.project-showcase{grid-template-columns:1fr 1fr;grid-template-rows:440px 250px}.project-showcase figure:first-child{grid-column:1/3;grid-row:auto}.footer-brand{border:0;padding-right:0}}
@media(max-width:620px){.project-showcase{display:block}.project-showcase figure{height:310px;margin-bottom:12px}.footer-brand img{width:205px;height:155px}}

/* v1.2 homepage slideshow, map and image motion */
.hero{isolation:isolate}
.hero:before{z-index:1;background:linear-gradient(90deg,rgba(10,11,14,.95) 0%,rgba(10,11,14,.77) 44%,rgba(10,11,14,.15) 78%)}
.hero .container{z-index:2}
.hero-slides{position:absolute;inset:0;z-index:0}
.hero-slide{position:absolute;inset:0;opacity:0;transform:scale(1.04);transition:opacity 1.1s ease,transform 7s ease;background-position:center;background-size:cover}
.hero-slide.is-active{opacity:1;transform:scale(1)}
.hero-controls{position:absolute;z-index:3;right:max(24px,calc((100vw - 1180px)/2));bottom:32px;display:flex;align-items:center;gap:10px}
.hero-arrow{width:44px;height:44px;border:1px solid rgba(255,255,255,.55);border-radius:50%;background:rgba(10,11,14,.42);color:#fff;font-size:24px;cursor:pointer;backdrop-filter:blur(6px);transition:.25s}
.hero-arrow:hover{background:var(--red);border-color:var(--red)}
.hero-dots{display:flex;gap:7px;margin:0 5px}.hero-dot{width:9px;height:9px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.5);cursor:pointer;transition:.25s}.hero-dot.is-active{width:28px;border-radius:5px;background:var(--red)}
.map-card{margin-top:28px;padding:8px;background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.map-card .map{display:block;height:390px;border-radius:12px}.map-actions{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 12px 9px}.map-actions strong{font-size:17px}.map-actions .btn{min-height:44px;padding:0 18px;font-size:12px}
main img{transition:transform .6s cubic-bezier(.2,.7,.2,1),filter .6s ease,box-shadow .6s ease}
.service-card:hover img,.gallery-grid a:hover img,.media-stack:hover .main-image,.why-grid>img:hover{transform:scale(1.045);filter:saturate(1.08) contrast(1.03)}
.media-stack,.why-grid>img{overflow:hidden}.image-effect{will-change:transform}.reveal-ready .reveal-item{opacity:0;transform:translateY(34px);transition:opacity .75s ease,transform .75s cubic-bezier(.2,.7,.2,1)}.reveal-ready .reveal-item.is-visible{opacity:1;transform:none}.reveal-ready .reveal-item:nth-child(2){transition-delay:.08s}.reveal-ready .reveal-item:nth-child(3){transition-delay:.16s}.reveal-ready .reveal-item:nth-child(4){transition-delay:.24s}
@media(max-width:900px){.hero:before{background:linear-gradient(90deg,rgba(10,11,14,.93),rgba(10,11,14,.58))}.hero-controls{right:20px;bottom:20px}.map-card .map{height:340px}}
@media(max-width:620px){.hero-controls{left:14px;right:14px;justify-content:flex-end}.hero-arrow{width:40px;height:40px}.hero-dots{display:none}.map-actions{display:block}.map-actions .btn{width:100%;margin-top:10px}.map-card .map{height:300px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.hero-slide,main img,.reveal-ready .reveal-item{transition:none!important;transform:none!important}.reveal-ready .reveal-item{opacity:1}}

/* v1.3 BBB accreditation link */
.bbb-link{display:inline-flex!important;align-items:center;margin-top:24px;padding:10px 13px;background:#fff;border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.22);transition:transform .25s ease,box-shadow .25s ease}
.bbb-link img{display:block;width:180px!important;height:auto!important;margin:0!important;padding:0!important;background:transparent!important;border-radius:0!important;object-fit:contain!important;filter:none!important}
.bbb-link:hover{transform:translateY(-3px);box-shadow:0 12px 30px rgba(0,0,0,.34)}
@media(max-width:620px){.bbb-link img{width:165px!important}}
