/* ==========================================================================
   Imperial Builders, LLC — shared stylesheet
   Used by: index.html, about.html, services.html, portfolio.html,
            reviews.html, contact.html
   ========================================================================== */

:root{color-scheme:light;--navy:#1d3557;--ink:#2b2b28;--cream:#faf7f1;--cream2:#f2ecdf;--bronze:#a07a3f;--bronze-d:#7d5f30;--bronze-text:#6b4e24;--bronze-btn:#7d5f30;--white:#ffffff;--line:#e4dccb}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;background:var(--cream);color:var(--ink)}
body{font-family:'Source Sans 3',Arial,sans-serif;font-size:17px;line-height:1.65;background:var(--cream);color:var(--ink)}
h1,h2,h3{font-family:'Cormorant Garamond',Georgia,serif;color:var(--navy);text-wrap:balance;line-height:1.15}
p{text-wrap:pretty}
img{max-width:100%;height:auto;display:block}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--bronze);outline-offset:2px}
.wrap{width:min(1280px,92%);margin:0 auto}
.about-grid>*,.contact-grid>*,.card,.step,.g-item,.quote-card,.nav>*,.val,.band-item,.rev3>*,.hero>*{min-width:0}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;background:var(--bronze-btn);color:#fff;font-weight:700;font-size:1rem;padding:.95rem 1.9rem;border-radius:4px;text-decoration:none;border:none;cursor:pointer;min-height:48px;transition:background .2s}
.btn:hover{background:#5f4620}
.btn-ghost{background:transparent;color:var(--navy);border:2px solid var(--navy)}
.btn-ghost:hover{background:var(--navy);color:#fff}

/* header */
header{position:sticky;top:0;z-index:50;background:rgba(250,247,241,.97);border-bottom:1px solid var(--line)}
.nav{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.8rem 0}
.brand{display:flex;align-items:center;gap:.65rem;text-decoration:none}
.brand-mark{width:44px;height:44px;border-radius:8px;background:var(--navy);color:#e9c46a;display:flex;align-items:center;justify-content:center;font-family:'Cormorant Garamond',serif;font-weight:700;font-size:1.25rem;flex-shrink:0}
.brand-name{font-family:'Cormorant Garamond',serif;font-weight:700;font-size:1.35rem;color:var(--navy);line-height:1.1}
.brand-sub{font-size:.7rem;letter-spacing:.14em;text-transform:uppercase;color:var(--bronze-text)}
nav.menu{display:flex;gap:1.6rem}
nav.menu a{color:var(--navy);text-decoration:none;font-weight:600;font-size:.95rem;padding:.4rem 0;border-bottom:2px solid transparent}
nav.menu a:hover{border-bottom-color:var(--bronze)}
nav.menu a.active{border-bottom-color:var(--bronze);color:var(--bronze-text)}
nav.menu ul{
  padding: 0px;
  margin: 0px;
  display: flex;
  gap: 30px;
}
nav.menu ul li {
  list-style: none;
}
.nav-cta{display:flex;align-items:center;gap:1rem}
.nav-tel{color:var(--navy);font-weight:700;text-decoration:none;white-space:nowrap}
.nav-tel:hover{color:var(--bronze)}
#menu-toggle{display:none;background:none;border:2px solid var(--navy);border-radius:4px;color:var(--navy);font-size:1.4rem;line-height:1;padding:.35rem .6rem;cursor:pointer;min-width:48px;min-height:48px}
.custom-logo-link {max-width: 250px;}

/* hero (homepage only) */
.hero{display:grid;grid-template-columns:1fr 1fr;min-height:0;max-height:820px}
.hero-copy{padding:clamp(2.2rem,5vw,4.5rem) clamp(1.2rem,6vw,7rem);display:flex;flex-direction:column;justify-content:center;background:var(--cream)}
.hero h1{font-size:clamp(2rem,3.4vw,3.3rem);margin-bottom:1.1rem}
.hero-sub{font-size:1.1rem;max-width:38rem;margin-bottom:1.6rem}
.hero-actions{display:flex;flex-wrap:wrap;gap:.9rem;margin-bottom:1.6rem}
.trust-row{display:flex;flex-wrap:wrap;gap:.6rem 1.4rem;font-size:.92rem;color:var(--ink)}
.trust-row span{display:flex;align-items:center;gap:.45rem;font-weight:600}
.trust-row svg{flex-shrink:0}
.hero-photo{position:relative;min-height:420px}
.hero-photo img {
    width: 100%;
    height: 100%;
}
.hero-badge{position:absolute;left:1.4rem;bottom:1.4rem;background:rgba(29,53,87,.92);color:#fff;padding:.8rem 1.2rem;border-radius:6px;font-size:.9rem;line-height:1.4}
.hero-badge strong{color:#e9c46a;font-size:1.05rem;display:block}

/* page banner (inner pages) */
.page-banner{background:var(--navy);color:#fff;padding:clamp(2.6rem,5vw,4.2rem) 0;text-align:center}
.crumb{font-size:.78rem;letter-spacing:.14em;text-transform:uppercase;color:#e9c46a;font-weight:700;margin-bottom:.8rem}
.page-banner h1{color:#fff;font-size:clamp(2rem,3.4vw,3rem);margin-bottom:.6rem}
.page-banner p{color:#c9d4e4;max-width:42rem;margin:0 auto}

/* sections */
section{padding:clamp(3rem,7vw,5rem) 0}
.sec-head{max-width:44rem;margin:0 auto 2.6rem;text-align:center}
.sec-head h2{font-size:clamp(1.7rem,2.6vw,2.4rem);margin-bottom:.7rem}
.eyebrow{letter-spacing:.16em;text-transform:uppercase;font-size:.8rem;font-weight:700;color:var(--bronze-text);margin-bottom:1rem}

/* about / split */
.split{background:var(--white)}
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(1.5rem,4vw,4rem);align-items:center}
.about-grid img{border-radius:8px;width:100%;height:100%;min-height:380px;object-fit:cover}
.about-grid h2{font-size:clamp(1.7rem,2.6vw,2.4rem);margin-bottom:1rem}
.about-grid p{margin-bottom:1rem}
.about-points{list-style:none;margin:1.2rem 0 1.6rem;display:grid;gap:.55rem}
.about-points li{display:flex;gap:.6rem;align-items:flex-start;font-weight:600}
.about-points svg{flex-shrink:0;margin-top:.25rem}
.about-points img {
  width: auto;
  min-height: auto;
  height: auto;
}
/* values */
.values{background:var(--cream)}
.val-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.4rem}
.val{background:var(--white);border:1px solid var(--line);border-radius:8px;padding:1.6rem 1.4rem}
.val .ic{width:46px;height:46px;border-radius:8px;background:var(--navy);color:#e9c46a;display:flex;align-items:center;justify-content:center;margin-bottom:.9rem}
.val h3{font-size:1.2rem;margin-bottom:.4rem}
.val p{font-size:.95rem}

/* stat band */
.band{background:var(--cream2)}
.band .wrap{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;text-align:center}
.band-item strong{display:block;font-family:'Cormorant Garamond',serif;font-weight:700;font-size:2.1rem;color:var(--navy);line-height:1.1}
.band-item span{font-size:.9rem;font-weight:600;color:var(--bronze-text)}

/* service cards */
.services{background:var(--cream)}
.card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1.4rem}
.card{background:var(--white);border:1px solid var(--line);border-radius:8px;overflow:hidden;display:flex;flex-direction:column}
.card img{height:185px;object-fit:cover;width:100%}
.card-body{padding:1.3rem 1.3rem 1.5rem;display:flex;flex-direction:column;gap:.55rem;flex:1}
.card h3{font-size:1.3rem}
.card p{font-size:.95rem;flex:1}
.card a{color:var(--bronze-d);font-weight:700;text-decoration:none;font-size:.95rem}
.card a:hover{text-decoration:underline}
.svc-list{list-style:none;display:grid;gap:.3rem;margin-top:.4rem}
.svc-list li{font-size:.88rem;padding-left:1.15rem;position:relative;font-weight:600;color:#4a4a44}
.svc-list li::before{content:"✓";position:absolute;left:0;color:var(--bronze-text);font-weight:700}

/* gallery */
.gallery{background:var(--navy)}
.gallery .sec-head h2,.gallery .sec-head p{color:#fff}
.g-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1.1rem}
.g-item{position:relative;border-radius:6px;overflow:hidden}
.g-item img{height:250px;width:100%;object-fit:cover;transition:transform .35s;cursor:zoom-in}
.g-item:hover img{transform:scale(1.04)}
.g-tag{position:absolute;left:0;bottom:0;right:0;background:linear-gradient(transparent,rgba(20,30,50,.88));color:#fff;font-weight:600;padding:1.6rem .9rem .7rem;font-size:.92rem;pointer-events:none}
.gallery-note{color:#c9d4e4;font-size:.85rem;text-align:center;margin-top:1.3rem}

/* reviews / testimonials */
.quotes{background:var(--white)}
.quote-main{max-width:52rem;margin:0 auto 2.6rem;text-align:center}
.stars{color:var(--bronze-text);font-size:1.2rem;letter-spacing:.2em;margin-bottom:1rem}
.quote-main blockquote{font-family:'Cormorant Garamond',serif;font-size:clamp(1.3rem,2vw,1.7rem);color:var(--navy);line-height:1.45;margin-bottom:1.2rem}
.quote-who{font-weight:700}
.quote-who span{display:block;font-weight:400;font-size:.9rem;color:#5b5b55}
.rev3{display:grid;grid-template-columns:repeat(2,1fr);max-width:52rem;margin:0 auto;gap:1.4rem}
.quote-card{background:var(--cream);border:1px solid var(--line);border-radius:8px;padding:1.5rem;display:flex;flex-direction:column;gap:.5rem}
.quote-card p{font-size:.98rem;flex:1}

/* process */
.process{background:var(--cream2)}
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:1.4rem}
.step{background:var(--white);border-radius:8px;padding:1.6rem 1.4rem;border-top:4px solid var(--bronze)}
.step h3{font-size:1.25rem;margin:.9rem 0 .5rem}
.step p{font-size:.95rem}
.step-num{width:42px;height:42px;border-radius:50%;background:var(--navy);color:#e9c46a;font-weight:700;display:flex;align-items:center;justify-content:center;font-size:1.1rem}

/* contact */
.contact{background:var(--navy)}
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(2rem,4vw,4rem)}
.contact h2{color:#fff;font-size:clamp(1.7rem,2.6vw,2.3rem);margin-bottom:1rem}
.contact .lede{color:#dbe3ef;margin-bottom:1.4rem}
.contact-info{list-style:none;display:grid;gap:.9rem;color:#fff}
.contact-info a{color:#e9c46a;font-weight:700;text-decoration:none}
.contact-info a:hover{text-decoration:underline}
form{background:var(--white);border-radius:8px;padding:1.8rem;display:grid;gap:1rem}
.f-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
label{font-weight:700;font-size:.85rem;color:var(--navy);display:block;margin-bottom:.3rem}
input,select,textarea{width:100%;padding:.75rem .85rem;border:1.5px solid #b9b3a4;border-radius:4px;font:inherit;font-size:1rem;background:#fff;color:var(--ink);min-height:48px}
textarea{min-height:120px;resize:vertical}
.form-note{font-size:.8rem;color:#565650}

/* cta band */
.cta{background:var(--bronze-btn);text-align:center}
.cta h2{color:#fff;margin-bottom:.7rem;font-size:clamp(1.7rem,2.6vw,2.3rem)}
.cta p{color:#f4ead9;max-width:40rem;margin:0 auto 1.6rem}
.cta .btn{background:#fff;color:var(--bronze-d)}
.cta .btn:hover{background:var(--cream)}

/* footer */
footer{background:#152740;color:#c3cede;padding:2rem 0 1.4rem;font-size:.9rem}
.foot-top{display:grid;grid-template-columns:2fr 1fr 1fr;gap:1.5rem;margin-bottom:1.4rem}
.foot-brand .brand-name{color:#fff}.foot-brand .brand-sub{color:#e9c46a}
.foot h4{color:#fff;font-family:'Source Sans 3',sans-serif;font-size:.8rem;letter-spacing:.12em;text-transform:uppercase;margin-bottom:.7rem}
.foot ul{list-style:none;display:grid;gap:.4rem}
.foot a{color:#c3cede;text-decoration:none}
.foot a:hover{color:#e9c46a}
.foot-bar{border-top:1px solid #2a3d57;padding-top:1.1rem;display:flex;flex-wrap:wrap;gap:.6rem;justify-content:space-between}
.foot-bar a{color:#e9c46a;text-decoration:none}

/* lightbox (image popup — used on portfolio gallery) */
.lightbox{display:none;position:fixed;inset:0;z-index:200;background:rgba(15,20,30,.92);padding:4vh 4vw;align-items:center;justify-content:center}
.lightbox.open{display:flex}
.lightbox-inner{position:relative;max-width:min(1100px,92vw);max-height:92vh}
.lightbox-inner img{max-width:100%;max-height:88vh;width:auto;height:auto;border-radius:6px;box-shadow:0 20px 60px rgba(0,0,0,.5);display:block;margin:0 auto}
.lightbox-caption{color:#f2ecdf;text-align:center;font-size:.95rem;margin-top:.9rem}
.lightbox-close{position:absolute;top:-3rem;right:0;background:transparent;border:2px solid #fff;color:#fff;width:44px;height:44px;border-radius:50%;font-size:1.4rem;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center}
.lightbox-close:hover{background:#fff;color:var(--navy)}
.lightbox-prev,.lightbox-next{position:absolute;top:50%;transform:translateY(-50%);background:rgba(255,255,255,.12);border:2px solid #fff;color:#fff;width:48px;height:48px;border-radius:50%;font-size:1.3rem;cursor:pointer;display:flex;align-items:center;justify-content:center}
.lightbox-prev:hover,.lightbox-next:hover{background:#fff;color:var(--navy)}
.lightbox-prev{left:-1.2rem}
.lightbox-next{right:-1.2rem}
@media (max-width:767px){
.lightbox-prev{left:.3rem}
.lightbox-next{right:.3rem}
.lightbox-close{top:-2.6rem;width:38px;height:38px}
}

@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.g-item img,.btn{transition:none}}
@media (max-width:1299px){
nav.menu{display:none}
#menu-toggle{display:block}
nav.menu.open{display:flex;position:absolute;top:100%;left:0;right:0;background:var(--cream);flex-direction:column;padding:.5rem 4% 1rem;border-bottom:1px solid var(--line);gap:0;max-height:80vh;overflow-y:auto;box-shadow:0 14px 22px -10px rgba(29,53,87,.18)}
nav.menu.open ul{flex-direction:column;align-items:stretch;width:100%;gap:0}
nav.menu.open ul li{width:100%;list-style:none;border-bottom:1px solid var(--line)}
nav.menu.open ul li:last-child{border-bottom:none}
nav.menu.open ul li a{display:block;width:100%;padding:.85rem .4rem;border-bottom:none}
nav.menu.open ul li a:hover,nav.menu.open ul li a.active{background:var(--cream2);border-radius:4px}
}
@media (max-width:1023px){
.val-grid,.rev3{grid-template-columns:repeat(2,1fr)}
.steps{grid-template-columns:repeat(2,1fr)}
.g-grid{grid-template-columns:repeat(2,1fr)}
.foot-top{grid-template-columns:1fr 1fr}
}
@media (max-width:767px){
.hero{grid-template-columns:1fr;max-height:none}
.hero-photo{min-height:160px;order:-1;max-height:200px}
.hero-badge{display:none}
.about-grid,.contact-grid,.f-row{grid-template-columns:1fr}
.card-grid,.steps,.g-grid,.val-grid,.rev3{grid-template-columns:1fr}
.band .wrap{grid-template-columns:1fr 1fr;gap:1.4rem}
.foot-top{grid-template-columns:1fr}
.about-grid img{min-height:240px}
.nav-tel{display:none}
.nav-cta .btn{display:none}
}

/* ================= Review Slider ================= */
.rev-slider-section{background:var(--white)}
.rev-slider{position:relative;max-width:44rem;margin:0 auto}
.rev-viewport{overflow:hidden}
.rev-track{display:flex;transition:transform .5s cubic-bezier(.4,0,.2,1)}
.rev-slide{flex:0 0 100%;max-width:100%;box-sizing:border-box;padding:0 3.6rem;text-align:center}
.rev-slide .stars{justify-content:center}
.rev-slide blockquote{font-family:'Cormorant Garamond',serif;font-style:normal;font-size:clamp(1.15rem,2vw,1.45rem);color:var(--navy);line-height:1.55;margin:0 0 1.3rem}
.rev-slide .quote-who{font-weight:700}
.rev-slide .quote-who span{display:block;font-weight:400;font-size:.88rem;color:#5b5b55;margin-top:.2rem}
.rev-arrow{position:absolute;top:40%;transform:translateY(-50%);width:46px;height:46px;border-radius:50%;border:1.5px solid var(--line);background:var(--white);color:var(--navy);font-size:1.6rem;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s,color .2s,border-color .2s;padding:0}
.rev-arrow:hover{background:var(--navy);color:#fff;border-color:var(--navy)}
.rev-prev{left:0}
.rev-next{right:0}
.rev-dots{display:flex;justify-content:center;gap:.55rem;margin-top:1.7rem}
.rev-dots button{width:9px;height:9px;border-radius:50%;border:none;background:var(--line);padding:0;cursor:pointer;transition:background .2s,transform .2s}
.rev-dots button.active{background:var(--bronze);transform:scale(1.25)}
.rev-slider:focus-visible{outline:none}
@media(max-width:640px){
  .rev-slide{padding:0 2.6rem}
  .rev-arrow{width:38px;height:38px;font-size:1.3rem}
}
