/* =========================================================
   PJ QUALITY ROOFING — Design Tokens
   ========================================================= */
:root{
  --ink:#12181F;
  --steel-900:#1C2A38;
  --steel-700:#2C4257;
  --steel-500:#5D7A99;
  --steel-200:#C7D4DE;
  --mist:#F3F6F8;
  --white:#FFFFFF;
  --amber:#F2A93B;
  --amber-dark:#D4881E;
  --text:#20272E;
  --text-soft:#54626E;

  --font-display:'Oswald', sans-serif;
  --font-body:'Inter', sans-serif;

  --radius-sm:6px;
  --radius-md:10px;
  --container:1180px;
  --shadow-card:0 8px 24px rgba(18,24,31,0.08);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--text);
  background:var(--white);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; }
h1,h2,h3{
  font-family:var(--font-display);
  color:var(--steel-900);
  line-height:1.15;
  margin:0 0 0.6em;
  letter-spacing:0.01em;
}
p{ margin:0 0 1.1em; color:var(--text-soft); }
p a, .content-section a{
  color:var(--steel-700);
  font-weight:600;
  text-decoration:underline;
  text-decoration-color:var(--amber);
  text-underline-offset:3px;
}
.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 24px;
}
.container.narrow{ max-width:820px; }

.skip-link{
  position:absolute; left:-999px; top:0;
  background:var(--ink); color:var(--white);
  padding:10px 16px; z-index:200;
}
.skip-link:focus{ left:12px; top:12px; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(28,42,56,0.97);
  backdrop-filter:blur(6px);
}
.header-inner{
  max-width:var(--container);
  margin:0 auto;
  padding:14px 24px;
  display:flex; align-items:center; gap:24px;
}
.logo{
  display:flex; align-items:center; gap:10px;
  text-decoration:none;
  margin-right:auto;
}
.logo-mark{
  width:30px; height:24px;
  background:linear-gradient(180deg, var(--amber) 0%, var(--amber-dark) 100%);
  clip-path:polygon(50% 0%, 100% 100%, 0% 100%);
  flex-shrink:0;
}
.logo-text{
  font-family:var(--font-display);
  font-size:1.15rem;
  color:var(--white);
  font-weight:600;
  letter-spacing:0.02em;
}
.logo-text em{ color:var(--amber); font-style:normal; }

.main-nav{ display:flex; gap:28px; }
.main-nav a{
  color:var(--steel-200);
  text-decoration:none;
  font-size:0.95rem;
  font-weight:500;
  transition:color .2s ease;
}
.main-nav a:hover{ color:var(--white); }

.header-call{
  display:flex; flex-direction:column; align-items:flex-end;
  text-decoration:none; color:var(--white);
}
.call-label{ font-size:0.72rem; color:var(--steel-200); }
.call-number{ font-weight:700; font-size:1rem; }

.nav-toggle{
  display:none; flex-direction:column; gap:5px;
  background:none; border:none; cursor:pointer; padding:6px;
}
.nav-toggle span{ width:22px; height:2px; background:var(--white); }

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position:relative;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(242,169,59,0.16), transparent 60%),
    linear-gradient(160deg, var(--ink) 0%, var(--steel-900) 55%, var(--steel-700) 100%);
  padding:88px 0 130px;
  overflow:hidden;
}
.hero-inner{
  max-width:var(--container);
  margin:0 auto;
  padding:0 24px;
  max-width:760px;
}
.eyebrow{
  color:var(--amber);
  font-weight:600;
  font-size:0.85rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
  margin-bottom:14px;
}
.hero h1{
  color:var(--white);
  font-size:clamp(2.1rem, 4.2vw, 3.4rem);
  margin-bottom:20px;
}
.hero-lead{
  color:var(--steel-200);
  font-size:1.08rem;
  max-width:620px;
}
.hero-lead a{
  color:var(--amber);
  text-decoration-color:var(--amber);
}
.hero-actions{
  display:flex; flex-wrap:wrap; gap:14px;
  margin:28px 0 34px;
}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:15px 28px;
  border-radius:var(--radius-sm);
  font-weight:600;
  font-size:0.98rem;
  text-decoration:none;
  border:2px solid transparent;
  transition:transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn:hover{ transform:translateY(-2px); }
.btn-primary{
  background:var(--amber);
  color:var(--ink);
}
.btn-primary:hover{ background:var(--amber-dark); }
.btn-ghost{
  border-color:rgba(255,255,255,0.35);
  color:var(--white);
}
.btn-ghost:hover{ border-color:var(--white); }

.hero-stats{
  list-style:none; margin:0; padding:0;
  display:flex; gap:36px; flex-wrap:wrap;
}
.hero-stats li{ display:flex; flex-direction:column; }
.hero-stats strong{
  font-family:var(--font-display);
  color:var(--white);
  font-size:1.5rem;
}
.hero-stats span{ color:var(--steel-200); font-size:0.85rem; }

/* Signature roofline shingle divider */
.roofline{
  position:absolute; left:0; right:0; bottom:0;
  height:46px;
  background:var(--white);
  clip-path:polygon(
    0% 100%, 0% 40%, 4% 100%, 8% 40%, 12% 100%, 16% 40%, 20% 100%, 24% 40%,
    28% 100%, 32% 40%, 36% 100%, 40% 40%, 44% 100%, 48% 40%, 52% 100%, 56% 40%,
    60% 100%, 64% 40%, 68% 100%, 72% 40%, 76% 100%, 80% 40%, 84% 100%, 88% 40%,
    92% 100%, 96% 40%, 100% 100%
  );
}

/* =========================================================
   ARTICLE / CONTENT SECTION
   ========================================================= */
.content-section{ padding:76px 0 20px; }
.content-section h2{
  font-size:clamp(1.5rem, 2.6vw, 1.9rem);
  margin-top:2.2em;
  padding-top:0.2em;
  border-top:3px solid var(--amber);
}
.content-section h2:first-child{ margin-top:0; border-top:none; }
.content-section h3{
  font-size:1.15rem;
  color:var(--steel-700);
  margin-top:1.6em;
}

/* =========================================================
   SERVICES CARDS
   ========================================================= */
.services{ background:var(--mist); padding:76px 0; }
.section-title{
  text-align:center;
  font-size:clamp(1.6rem, 2.8vw, 2.1rem);
}
.section-sub{
  text-align:center;
  max-width:560px;
  margin:0 auto 44px;
  color:var(--text-soft);
}
.card-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:24px;
}
.service-card{
  background:var(--white);
  border-radius:var(--radius-md);
  padding:30px 26px;
  box-shadow:var(--shadow-card);
  position:relative;
  padding-top:38px;
}
.service-card::before{
  content:"";
  position:absolute;
  top:0; left:26px; right:26px;
  height:6px;
  background:linear-gradient(90deg, var(--amber), var(--steel-500));
  clip-path:polygon(0 0,10% 100%,20% 0,30% 100%,40% 0,50% 100%,60% 0,70% 100%,80% 0,90% 100%,100% 0, 100% 100%, 0 100%);
}
.service-card h3{ margin-bottom:8px; font-size:1.15rem; }
.service-card p{ margin:0; font-size:0.95rem; }

/* =========================================================
   PROCESS TIMELINE
   ========================================================= */
.process{ padding:76px 0; }
.timeline{
  list-style:none; margin:0; padding:0;
  display:grid;
  grid-template-columns:repeat(5, 1fr);
  gap:20px;
}
.timeline li{
  display:flex; flex-direction:column; align-items:flex-start;
  gap:12px;
  padding:22px 18px;
  background:var(--mist);
  border-radius:var(--radius-md);
  border-left:4px solid var(--amber);
}
.step-num{
  font-family:var(--font-display);
  font-size:1.6rem;
  color:var(--steel-500);
}
.timeline h3{ font-size:1rem; margin-bottom:4px; }
.timeline p{ font-size:0.88rem; margin:0; }

/* =========================================================
   BENEFITS
   ========================================================= */
.benefits{ background:var(--steel-900); padding:76px 0; }
.benefits .section-title{ color:var(--white); }
.benefit-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:22px;
}
.benefit-item{
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.1);
  border-radius:var(--radius-md);
  padding:26px 22px;
}
.benefit-item h3{ color:var(--white); font-size:1.05rem; }
.benefit-item p{ color:var(--steel-200); margin:0; font-size:0.92rem; }

/* =========================================================
   FAQ
   ========================================================= */
.faq{ padding:76px 0; }
.faq-item{
  border-bottom:1px solid var(--steel-200);
}
.faq-question{
  width:100%;
  text-align:left;
  background:none;
  border:none;
  padding:18px 34px 18px 0;
  font-family:var(--font-body);
  font-weight:600;
  font-size:1rem;
  color:var(--text);
  cursor:pointer;
  position:relative;
}
.faq-question::after{
  content:"+";
  position:absolute;
  right:4px; top:16px;
  font-size:1.3rem;
  color:var(--amber-dark);
  transition:transform .2s ease;
}
.faq-question[aria-expanded="true"]::after{ content:"–"; }
.faq-answer{
  max-height:0;
  overflow:hidden;
  transition:max-height .25s ease;
}
.faq-answer p{ padding-bottom:16px; margin:0; font-size:0.96rem; }

/* =========================================================
   CONCLUSION
   ========================================================= */
.conclusion{
  padding:70px 0;
  background:var(--mist);
  text-align:center;
}
.conclusion h2{ font-size:clamp(1.5rem, 2.6vw, 1.9rem); }
.conclusion p{ max-width:680px; margin:0 auto; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact{ padding:80px 0; }
.contact-grid{
  display:grid;
  grid-template-columns:1.3fr 1fr;
  gap:40px;
  align-items:start;
}
.contact-info h2{ font-size:1.9rem; }
.contact-list{
  list-style:none; margin:0 0 28px; padding:0;
  display:flex; flex-direction:column; gap:14px;
}
.contact-list li{ display:flex; flex-direction:column; gap:2px; }
.contact-label{
  font-size:0.78rem;
  text-transform:uppercase;
  letter-spacing:0.06em;
  color:var(--steel-500);
  font-weight:600;
}
.contact-list a{
  color:var(--steel-700);
  text-decoration:none;
  font-weight:600;
  font-size:1.05rem;
}
.contact-card{
  background:var(--steel-900);
  color:var(--white);
  border-radius:var(--radius-md);
  padding:30px 28px;
}
.contact-card h3{ color:var(--white); font-size:1.1rem; }
.hours-list{
  list-style:none; margin:0 0 18px; padding:0;
}
.hours-list li{
  display:flex; justify-content:space-between;
  padding:8px 0;
  border-bottom:1px solid rgba(255,255,255,0.12);
  font-size:0.92rem;
  color:var(--steel-200);
}
.emergency-note{
  font-size:0.85rem;
  color:var(--amber);
  margin:0;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{
  background:var(--ink);
  color:var(--steel-200);
  padding:44px 0 100px;
}
.footer-inner{
  display:flex; flex-wrap:wrap; gap:24px;
  justify-content:space-between; align-items:flex-start;
}
.site-footer p{ color:var(--steel-200); margin:6px 0 0; font-size:0.88rem; }
.footer-links{ display:flex; gap:20px; flex-wrap:wrap; }
.footer-links a{ text-decoration:none; color:var(--steel-200); font-size:0.9rem; }
.footer-links a:hover{ color:var(--amber); }
.copyright{ width:100%; font-size:0.8rem; opacity:0.7; margin-top:20px; }

/* Mobile sticky call bar */
.mobile-call-bar{
  display:none;
  position:fixed; left:0; right:0; bottom:0; z-index:150;
  background:var(--amber);
  color:var(--ink);
  text-align:center;
  font-weight:700;
  padding:14px 0;
  text-decoration:none;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width:960px){
  .main-nav{ display:none; }
  .nav-toggle{ display:flex; }
  .header-call .call-label{ display:none; }
  .card-grid{ grid-template-columns:repeat(2, 1fr); }
  .timeline{ grid-template-columns:repeat(2, 1fr); }
  .benefit-grid{ grid-template-columns:repeat(2, 1fr); }
  .contact-grid{ grid-template-columns:1fr; }
}

@media (max-width:640px){
  .hero{ padding:64px 0 96px; }
  .hero-actions{ flex-direction:column; }
  .btn{ width:100%; }
  .card-grid{ grid-template-columns:1fr; }
  .timeline{ grid-template-columns:1fr; }
  .benefit-grid{ grid-template-columns:1fr; }
  .mobile-call-bar{ display:block; }
  .site-footer{ padding-bottom:110px; }
  .header-inner{ gap:12px; }
  .header-call{ display:none; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .btn, .faq-answer{ transition:none; }
}
