/* JB Contracting blog stylesheet */
:root {
  --navy: #1e3a8a;
  --navy-dark: #1a2f6f;
  --navy-deep: #14245a;
  --slate: #2a3e6b;
  --slate-soft: #4a5b80;
  --steel: #6b7a90;
  --fog: #b8c4d4;
  --mist: #e2e8f0;
  --paper: #f4f6fb;
  --white: #ffffff;
  --offwhite: #fafbfd;
  --line: #dde3ec;
  --line-soft: #ecf0f6;
  --copper: #111827;
  --copper-dark: #000000;
  --gold: #b6c2d4;
  --shadow-sm: 0 4px 12px rgba(15, 28, 42, 0.06);
  --shadow: 0 20px 50px -20px rgba(15, 28, 42, 0.22);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--copper); }
a:hover { color: var(--copper-dark); }
button { font-family: inherit; cursor: pointer; }

.announce {
  background: var(--navy-deep);
  color: var(--mist);
  text-align: center;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 500;
}
.announce span { color: var(--gold); }
.announce a { color: var(--white); text-decoration: underline; text-underline-offset: 2px; }

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 16px 32px;
}
.header-inner { max-width: 1340px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.logo {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--navy);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-mark {
  width: 40px; height: 40px;
  background: var(--navy);
  color: var(--white);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
  letter-spacing: -0.02em;
}
.logo-mark .amp { color: var(--gold); font-style: italic; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text span:first-child { font-size: 18px; }
.logo-text span:last-child {
  font-size: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--slate-soft);
  text-transform: uppercase;
  margin-top: 2px;
}
.nav { display: flex; gap: 32px; align-items: center; }
.nav a {
  color: var(--slate);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav a:hover { color: var(--copper); }
.nav a.active { color: var(--copper); }
.header-cta { display: flex; gap: 12px; align-items: center; }
.phone-link {
  display: flex; align-items: center; gap: 6px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  letter-spacing: 0.005em;
}
.btn-primary { background: var(--copper); color: var(--white); }
.btn-primary:hover { background: var(--copper-dark); transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(17, 24, 39, 0.55); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-dark); transform: translateY(-1px); }
.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }
.btn-outline-light {
  background: rgba(255,255,255,0.05);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline-light:hover { background: var(--white); color: var(--navy); }
.btn-large { padding: 17px 32px; font-size: 16px; }
@media (max-width: 920px) {
  .nav { display: none; }
  .header-cta .phone-link { display: none; }
  .header { padding: 14px 20px; }
}

.blog-hero {
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 70px 32px 80px;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 30%, rgba(17, 24, 39, 0.18), transparent 50%),
              radial-gradient(ellipse at 10% 90%, rgba(74, 91, 112, 0.4), transparent 50%);
  pointer-events: none;
}
.blog-hero-inner { max-width: 880px; margin: 0 auto; position: relative; }
.blog-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 14px;
}
.blog-hero h1 {
  color: var(--white);
  font-size: clamp(34px, 4.8vw, 56px);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 18px;
}
.blog-hero h1 em { font-style: normal; color: var(--gold); font-weight: 500; }
.blog-hero .lede { font-size: 18px; color: var(--mist); max-width: 700px; line-height: 1.55; }
.blog-meta-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; font-size: 13px; color: var(--fog); }
.blog-meta-row .dot { opacity: 0.5; }

.blog-feature-img {
  max-width: 1080px;
  margin: -40px auto 0;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}
.blog-feature-img img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow);
  aspect-ratio: 16/9;
  object-fit: cover;
}

.blog-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 28px 80px;
  font-size: 17px;
  color: var(--slate);
}
.blog-body h2 { font-size: 30px; margin: 44px 0 14px; color: var(--navy); }
.blog-body h3 { font-size: 22px; margin: 28px 0 10px; color: var(--navy); }
.blog-body p { margin-bottom: 18px; line-height: 1.75; }
.blog-body ul, .blog-body ol { margin: 0 0 22px 22px; }
.blog-body li { margin-bottom: 8px; line-height: 1.6; }
.blog-body strong { color: var(--navy); }
.blog-body figure { margin: 32px 0; }
.blog-body figure img { width: 100%; border-radius: 10px; box-shadow: var(--shadow); }
.blog-body figcaption { font-size: 13px; color: var(--slate-soft); text-align: center; margin-top: 10px; }
.pull-cta {
  background: var(--paper);
  border-left: 4px solid var(--copper);
  padding: 24px 26px;
  border-radius: 6px;
  margin: 36px 0;
}
.pull-cta p { margin-bottom: 14px !important; color: var(--navy); font-weight: 500; }
.pull-cta a.btn { margin-top: 4px; }

.cost-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
  font-size: 15px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.cost-table th, .cost-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
}
.cost-table th { background: var(--paper); font-family: 'Fraunces', serif; font-weight: 600; color: var(--navy); }
.cost-table tr:last-child td { border-bottom: none; }

.blog-end-cta {
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 70px 30px;
  text-align: center;
  margin-top: 40px;
}
.blog-end-cta h2 { color: var(--white); font-size: clamp(28px, 4vw, 42px); margin-bottom: 14px; }
.blog-end-cta h2 em { font-style: normal; color: var(--gold); font-weight: 600; }
.blog-end-cta p { color: var(--mist); max-width: 560px; margin: 0 auto 26px; line-height: 1.6; }
.blog-end-cta .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.blog-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--gold);
  text-decoration: none;
}
.blog-back:hover { color: var(--white); }

.related-row {
  max-width: 1100px;
  margin: 70px auto 0;
  padding: 0 28px;
}
.related-row h3 {
  font-size: 22px;
  margin-bottom: 22px;
  text-align: center;
}

.blog-index { max-width: 1200px; margin: 0 auto; padding: 70px 28px; }
.blog-index-header { text-align: center; margin-bottom: 50px; }
.blog-index-header .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 700;
  color: var(--copper);
  margin-bottom: 12px;
  display: inline-block;
}
.blog-index-header h1 { font-size: clamp(36px, 5vw, 60px); margin-bottom: 16px; }
.blog-index-header h1 em { font-style: normal; color: var(--copper); font-weight: 600; }
.blog-index-header p {
  font-size: 18px;
  color: var(--slate-soft);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 28px;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.blog-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--paper);
}
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-body { padding: 24px 24px 28px; flex: 1; display: flex; flex-direction: column; }
.blog-card-tag {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 700;
  color: var(--copper);
  margin-bottom: 10px;
}
.blog-card h3 { font-size: 22px; line-height: 1.2; margin-bottom: 10px; }
.blog-card p {
  font-size: 14px;
  color: var(--slate-soft);
  line-height: 1.55;
  flex: 1;
}
.blog-card .read {
  color: var(--copper);
  font-weight: 600;
  font-size: 14px;
  margin-top: 16px;
}

footer {
  background: var(--navy-deep);
  color: var(--mist);
  padding: 60px 32px 24px;
}
.footer-inner {
  max-width: 1340px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p { font-size: 14px; line-height: 1.6; max-width: 340px; opacity: 0.85; margin-bottom: 18px; }
footer h4 {
  color: var(--white);
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}
footer ul { list-style: none; }
footer li { margin-bottom: 8px; font-size: 14px; }
footer a { color: var(--mist); text-decoration: none; opacity: 0.85; }
footer a:hover { opacity: 1; color: var(--white); }
.footer-bottom {
  max-width: 1340px;
  margin: 36px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--fog);
  opacity: 0.85;
}
@media (max-width: 920px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 540px) {
  .footer-inner { grid-template-columns: 1fr; }
}
