/* ============================================
   ARTICLE TEMPLATE — Divided Sky Roofing + Exteriors
   Styles for single.php blog post template
   ============================================ */

/* --- HERO --- */
.art-hero {
  position: relative;
  background: linear-gradient(135deg, #1a1a1a 0%, #2B2B2B 60%, #1e2a1e 100%);
  padding: 160px 0 80px;
  overflow: hidden;
}

.art-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(119, 232, 6, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(119, 232, 6, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.art-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, #222222, transparent);
  pointer-events: none;
}

.art-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.art-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.art-hero-tag {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(119, 232, 6, 0.15);
  color: #77E806;
  border: 1px solid rgba(119, 232, 6, 0.3);
}

.art-hero-date {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

.art-hero-title {
  font-family: 'Inter', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: -0.02em;
}


/* --- ARTICLE BODY WRAPPER --- */
.art-body {
  background: #222222;
  padding: 60px 0 80px;
}

.art-layout {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}


/* --- TABLE OF CONTENTS SIDEBAR --- */
.art-toc {
  flex: 0 0 260px;
  position: sticky;
  top: 100px;
  order: -1;
}

.art-toc-inner {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 28px 24px;
}

.art-toc-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.art-toc-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.art-toc-link {
  display: block;
  padding: 8px 0 8px 16px;
  font-size: 0.85rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
}

.art-toc-link:hover {
  color: rgba(255, 255, 255, 0.9);
}

.art-toc-link.active {
  color: #77E806;
  border-left-color: #77E806;
}

.art-toc-link.art-toc-sub {
  padding-left: 28px;
  font-size: 0.8rem;
}


/* --- MAIN CONTENT --- */
.art-content {
  flex: 1;
  min-width: 0;
  max-width: 760px;
}

/* Typography */
.art-content h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 56px 0 20px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  padding-top: 16px;
}

.art-content h2:first-child {
  margin-top: 0;
}

.art-content h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 40px 0 16px;
  line-height: 1.3;
}

.art-content h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin: 32px 0 12px;
  line-height: 1.35;
}

.art-content p {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 20px;
}

.art-content a {
  color: #77E806;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.art-content a:hover {
  color: #8fff2a;
}

.art-content strong, .art-content b {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 700;
}

.art-content em, .art-content i {
  color: rgba(255, 255, 255, 0.8);
}

/* Lists */
.art-content ul,
.art-content ol {
  margin: 0 0 24px;
  padding-left: 24px;
}

.art-content li {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 8px;
}

.art-content ul li::marker {
  color: #77E806;
}

.art-content ol li::marker {
  color: #77E806;
  font-weight: 700;
}

/* Blockquotes */
.art-content blockquote {
  margin: 32px 0;
  padding: 24px 28px;
  border-left: 4px solid #77E806;
  background: rgba(119, 232, 6, 0.05);
  border-radius: 0 12px 12px 0;
}

.art-content blockquote p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  font-style: italic;
  margin: 0;
}

/* Images */
.art-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 28px 0;
}

.art-content figure {
  margin: 32px 0;
}

.art-content figcaption {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  margin-top: 10px;
}

/* Tables */
.art-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 0.95rem;
}

.art-content th {
  background: rgba(119, 232, 6, 0.1);
  color: #77E806;
  font-weight: 700;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid rgba(119, 232, 6, 0.3);
}

.art-content td {
  padding: 10px 16px;
  color: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.art-content tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* HR */
.art-content hr {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 48px 0;
}

/* Code */
.art-content code {
  font-family: monospace;
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
  color: #77E806;
}

.art-content pre {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px 24px;
  overflow-x: auto;
  margin: 28px 0;
}

.art-content pre code {
  background: none;
  padding: 0;
}


/* --- CTA SECTION --- */
.art-cta {
  background: linear-gradient(135deg, #1a1a1a 0%, #2B2B2B 50%, #1e2a1e 100%);
  padding: 80px 0;
  position: relative;
}

.art-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(119, 232, 6, 0.3), transparent);
}


/* --- Hide old Zephyr elements --- */
.ds-article-page .l-header,
.ds-article-page .w-header,
.ds-article-page .l-footer,
.ds-article-page .w-footer,
.ds-article-page .l-titlebar,
.ds-article-page .w-toplink,
.ds-article-page .w-nav,
.ds-article-page .us-footer,
.ds-article-page #us-canvas > .l-header,
.ds-article-page #us-canvas > .l-footer,
.ds-article-page .w-post-elm.post_custom_field,
.ds-article-page .w-post-elm.post_taxonomy,
.ds-article-page .w-post-elm.post_date,
.ds-article-page .w-blog {
  display: none !important;
}

/* Hide old Zephyr footer bar and error badges */
.ds-article-page .us-footer-terms,
.ds-article-page .w-footer-terms,
.ds-article-page [class*="footer-terms"],
.ds-article-page .us_error_frame,
.ds-article-page #us_error_frame,
.ds-article-page [id*="us_error"],
.ds-article-page .w-toplink {
  display: none !important;
}

/* Override any Zephyr theme styles that leak through */
.ds-article-page .entry-content,
.ds-article-page .w-post-elm.post_content {
  /* These are the containers WP uses for the_content() output */
}

/* Clean up WP blocks */
.art-content .wp-block-separator {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 48px 0;
}

.art-content .wp-block-image {
  margin: 32px 0;
}

.art-content .wp-block-image img {
  border-radius: 12px;
}

/* Hide "Give Us a Call" and "Recommended" sections from old content */
.art-content .w-btn,
.art-content .g-cols,
.art-content .w-post-elm.post_taxonomy,
.art-content .w-post-elm.post_date,
.art-content .wpb_wrapper > .vc_row:last-child {
  /* Selectively hide old CTA blocks from the post content if needed */
}


/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .art-layout {
    flex-direction: column;
    gap: 0;
  }

  .art-toc {
    position: relative;
    top: 0;
    flex: none;
    width: 100%;
    margin-bottom: 40px;
    order: -1;
  }

  .art-toc-inner {
    padding: 20px;
  }

  .art-hero-title {
    font-size: 2.2rem;
  }

  .art-hero {
    padding: 140px 0 60px;
  }
}

@media (max-width: 768px) {
  .art-hero {
    padding: 120px 0 48px;
  }

  .art-hero-title {
    font-size: 1.75rem;
  }

  .art-hero-meta {
    gap: 8px;
  }

  .art-hero-tag {
    font-size: 0.7rem;
    padding: 4px 12px;
  }

  .art-body {
    padding: 40px 0 60px;
  }

  .art-content h2 {
    font-size: 1.5rem;
    margin: 40px 0 16px;
  }

  .art-content h3 {
    font-size: 1.15rem;
    margin: 32px 0 12px;
  }

  .art-content p,
  .art-content li {
    font-size: 1rem;
    line-height: 1.7;
  }

  .art-cta {
    padding: 60px 0;
  }

  .art-cta h2 {
    font-size: 1.8rem !important;
  }
}

@media (max-width: 480px) {
  .art-hero-title {
    font-size: 1.5rem;
  }

  .art-content blockquote {
    padding: 16px 20px;
    margin: 24px 0;
  }

  .art-toc-inner {
    padding: 16px;
  }
}
