/* Total Roofing USA -- shared styles */

:root{
  --red: #d60218;
  --red-dark: #a30112;
  --navy: #0a1830;
  --navy-soft: #142645;
  --black: #101113;
  --white: #ffffff;
  --gray-light: #f2f3f5;
  --gray-mid: #5b6572;
  --border: #e1e3e8;
  --max: 1180px;
  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--black);
  background:var(--white);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block;}
a{color:inherit;}
h1,h2,h3{
  font-family:var(--font-head);
  text-transform:uppercase;
  letter-spacing:0.01em;
  line-height:1.1;
  margin:0 0 .5em;
  color:var(--navy);
}
p{margin:0 0 1em;color:var(--gray-mid);}
.wrap{max-width:var(--max);margin:0 auto;padding:0 24px;}

/* buttons */
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family:var(--font-head);
  text-transform:uppercase;
  letter-spacing:.03em;
  font-size:1rem;
  text-decoration:none;
  padding:16px 30px;
  border:2px solid var(--red);
  background:var(--red);
  color:var(--white);
  transition:background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover{background:var(--red-dark);border-color:var(--red-dark);}
.btn:focus-visible{outline:3px solid var(--white);outline-offset:2px;}
.btn.btn-outline{
  background:transparent;
  color:var(--white);
  border-color:var(--white);
}
.btn.btn-outline:hover{background:var(--white);color:var(--navy);}
.btn svg{width:18px;height:18px;flex:none;}

/* header */
.site-header{
  background:var(--navy);
  position:sticky;
  top:0;
  z-index:50;
  border-bottom:3px solid var(--red);
}
.site-header .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:76px;
}
.site-header img.logo{height:42px;width:auto;}
.site-nav{display:flex;align-items:center;gap:28px;}
.site-nav a{
  color:#cdd6e4;
  text-decoration:none;
  font-family:var(--font-head);
  text-transform:uppercase;
  font-size:.9rem;
  letter-spacing:.03em;
}
.site-nav a:hover{color:var(--white);}
.header-call{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--white);
  text-decoration:none;
  font-family:var(--font-head);
  font-size:1.05rem;
  letter-spacing:.02em;
  border:2px solid var(--red);
  padding:9px 18px;
  background:var(--red);
}
.header-call:hover{background:var(--red-dark);border-color:var(--red-dark);}
.header-call svg{width:18px;height:18px;}
@media (max-width:860px){
  .site-nav{display:none;}
}

/* hero */
.hero{
  position:relative;
  color:var(--white);
  padding:110px 24px 90px;
  background-size:cover;
  background-position:center;
  isolation:isolate;
}
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(8,15,28,.80), rgba(8,15,28,.72) 40%, rgba(8,15,28,.9));
  z-index:-1;
}
.hero-inner{
  max-width:760px;
  margin:0 auto;
  text-align:center;
}
.hero-eyebrow{
  font-family:var(--font-head);
  color:#ff8a94;
  letter-spacing:.06em;
  font-size:.95rem;
  margin-bottom:14px;
}
.hero h1{
  color:var(--white);
  font-size:clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom:20px;
}
.hero p.lead{
  color:#dbe1ea;
  font-size:1.15rem;
  max-width:600px;
  margin:0 auto 34px;
}
.hero-actions{display:flex;justify-content:center;gap:16px;flex-wrap:wrap;}
.hero-note{margin-top:18px;color:#aab6c6;font-size:.9rem;}

/* stat bar */
.stats{background:var(--gray-light);padding:44px 0;}
.stats .wrap{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
  text-align:center;
}
.stat b{
  display:block;
  font-family:var(--font-head);
  font-size:2.2rem;
  color:var(--navy);
}
.stat span{color:var(--gray-mid);font-size:.92rem;}
@media (max-width:700px){
  .stats .wrap{grid-template-columns:repeat(2,1fr);}
}

/* generic section */
.section{padding:88px 0;}
.section-head{max-width:640px;margin:0 auto 52px;text-align:center;}
.section-head h2{font-size:clamp(1.8rem,3.4vw,2.5rem);}
.section-head p{font-size:1.05rem;}
.section.alt{background:var(--gray-light);}

/* services */
.services-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:0;
  border-top:1px solid var(--border);
  border-left:1px solid var(--border);
}
.service{
  padding:34px 28px;
  border-right:1px solid var(--border);
  border-bottom:1px solid var(--border);
  border-left:3px solid var(--red);
}
.service .icon{width:34px;height:34px;color:var(--red);margin-bottom:16px;}
.service h3{font-size:1.15rem;margin-bottom:10px;}
.service p{font-size:.95rem;margin:0;}
@media (max-width:960px){
  .services-grid{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:600px){
  .services-grid{grid-template-columns:1fr;}
}

/* process */
.process{display:grid;grid-template-columns:repeat(3,1fr);gap:40px;}
.process-step{position:relative;padding-left:56px;}
.process-step .num{
  position:absolute;left:0;top:-4px;
  font-family:var(--font-head);
  font-size:2.4rem;
  color:var(--red);
  line-height:1;
}
.process-step h3{font-size:1.1rem;}
@media (max-width:800px){
  .process{grid-template-columns:1fr;gap:32px;}
}

/* testimonials */
.testimonials{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;}
.testimonial{
  background:var(--white);
  border:1px solid var(--border);
  padding:30px 26px;
}
.stars{display:flex;gap:4px;margin-bottom:14px;}
.stars svg{width:18px;height:18px;color:#f2b400;}
.testimonial .mark{font-family:var(--font-head);font-size:2.6rem;color:var(--red);line-height:.6;display:block;margin-bottom:10px;}
.testimonial p{color:var(--black);font-size:.98rem;}
.testimonial .who{
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid var(--border);
  font-family:var(--font-head);
  font-size:.9rem;
  color:var(--navy);
}
.testimonial .who span{display:block;color:var(--gray-mid);font-family:var(--font-body);font-size:.85rem;font-weight:400;text-transform:none;}
@media (max-width:900px){
  .testimonials{grid-template-columns:1fr;}
}

/* faq */
.faq{max-width:760px;margin:0 auto;}
.faq details{
  border-bottom:1px solid var(--border);
  padding:20px 0;
}
.faq summary{
  cursor:pointer;
  list-style:none;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  font-family:var(--font-head);
  color:var(--navy);
  font-size:1.05rem;
  text-transform:none;
  letter-spacing:0;
}
.faq summary::-webkit-details-marker{display:none;}
.faq summary::after{
  content:"+";
  font-size:1.6rem;
  color:var(--red);
  flex:none;
  transition:transform .15s ease;
}
.faq details[open] summary::after{transform:rotate(45deg);}
.faq .faq-body{color:var(--gray-mid);margin-top:14px;padding-right:30px;}

/* final cta */
.cta-band{
  background:var(--navy);
  color:var(--white);
  padding:70px 24px;
  text-align:center;
}
.cta-band h2{color:var(--white);}
.cta-band p{color:#c3cbd8;max-width:520px;margin:0 auto 30px;}

/* footer */
.site-footer{background:var(--black);color:#9aa2ad;padding:60px 0 26px;}
.footer-grid{
  display:grid;
  grid-template-columns:2fr 1fr 1fr;
  gap:40px;
  padding-bottom:36px;
  border-bottom:1px solid #262a30;
}
.footer-grid img.logo{height:38px;margin-bottom:16px;}
.footer-grid p{color:#8a929d;max-width:340px;}
.footer-grid h4{
  color:var(--white);
  font-family:var(--font-head);
  text-transform:uppercase;
  font-size:.95rem;
  letter-spacing:.03em;
  margin-bottom:16px;
}
.footer-grid ul{list-style:none;margin:0;padding:0;}
.footer-grid li{margin-bottom:10px;}
.footer-grid a{color:#9aa2ad;text-decoration:none;font-size:.95rem;}
.footer-grid a:hover{color:var(--white);}
.footer-bottom{
  padding-top:26px;
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px;
  font-size:.85rem;
  color:#6a727c;
}
@media (max-width:800px){
  .footer-grid{grid-template-columns:1fr;}
}

/* legal pages */
.legal{padding:70px 0 100px;}
.legal .wrap{max-width:820px;}
.legal h1{font-size:2.2rem;margin-bottom:8px;}
.legal .updated{color:var(--gray-mid);font-size:.9rem;margin-bottom:40px;}
.legal h2{font-size:1.3rem;margin-top:2.2em;color:var(--navy);}
.legal p, .legal li{color:#3b4148;}
.legal ul{padding-left:1.2em;}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto;}
  *{transition-duration:0.001ms !important;}
}
