/* =============================================================
   LIFETIME CONSTRUCTION — INNER PAGE STYLES
   Loaded on all non-front-page views via functions.php.
   Covers: WordPress editor output, Gutenberg blocks, service/city
   page layouts, blog, sidebar widgets, post navigation.
   No var() refs — all values hardcoded for WindPress compatibility.
   ============================================================= */


/* -------------------------------------------------------------
   HEADER: Always solid on inner pages
   ------------------------------------------------------------- */
.is-inner-page .hdr,
.is-service-page .hdr,
.is-city-page .hdr {
  background: rgba(12, 12, 12, 0.96) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
}


/* -------------------------------------------------------------
   INNER PAGE HERO BANNER
   Used on service, city, generic pages
   ------------------------------------------------------------- */
.inner-hero {
  padding-top: calc(var(--header-h, 80px) + 3rem);
  padding-bottom: 3rem;
  background: linear-gradient(170deg, #080808 0%, #111 40%, #161616 100%);
  position: relative;
}

.inner-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #c41e1e;
}


/* -------------------------------------------------------------
   WORDPRESS EDITOR CONTENT (.inner-content)
   Styles all elements output by the_content()
   ------------------------------------------------------------- */

/* Headings */
.inner-content h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.04em;
  color: #0c0c0c;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.inner-content h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: #1a1a1a;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.inner-content h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.inner-content h5,
.inner-content h6 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Remove top margin on first heading */
.inner-content > h2:first-child,
.inner-content > h3:first-child,
.inner-content > h4:first-child {
  margin-top: 0;
}

/* Paragraphs */
.inner-content p {
  margin-bottom: 1.25rem;
  line-height: 1.75;
  color: #444;
}

.inner-content > p:last-child {
  margin-bottom: 0;
}

/* Lead paragraph (first p after a heading or first in content) */
.inner-content > p:first-child,
.inner-content > h2 + p {
  font-size: 1.1rem;
  color: #333;
}

/* Lists */
.inner-content ul,
.inner-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
  color: #444;
}

.inner-content ul { list-style: disc; }
.inner-content ol { list-style: decimal; }

.inner-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.inner-content li::marker {
  color: #c41e1e;
}

/* Nested lists */
.inner-content li ul,
.inner-content li ol {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* Links */
.inner-content a {
  color: #c41e1e;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.inner-content a:hover {
  color: #a51818;
  text-decoration-color: transparent;
}

/* Blockquotes */
.inner-content blockquote {
  border-left: 4px solid #c41e1e;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  background: #f6f6f6;
  border-radius: 0 2px 2px 0;
  font-style: italic;
  color: #555;
  line-height: 1.7;
}

.inner-content blockquote p:last-child {
  margin-bottom: 0;
}

.inner-content blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 600;
  color: #888;
}

/* Images */
.inner-content img {
  border-radius: 2px;
  max-width: 100%;
  height: auto;
}

.inner-content figure {
  margin: 2rem 0;
}

.inner-content figcaption {
  font-size: 0.8rem;
  color: #888;
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
}

/* Horizontal rule */
.inner-content hr {
  border: none;
  border-top: 1px solid #e2e2e2;
  margin: 2.5rem 0;
}

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

.inner-content th,
.inner-content td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e5e5e5;
}

.inner-content th {
  font-weight: 700;
  background: #f6f6f6;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #333;
}

.inner-content tr:hover td {
  background: #faf9f7;
}

/* Responsive table wrapper */
.inner-content .table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
}

/* Code */
.inner-content code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.85em;
  background: #f6f6f6;
  padding: 0.2em 0.45em;
  border-radius: 3px;
  color: #c41e1e;
}

.inner-content pre {
  background: #1a1a1a;
  color: #e5e5e5;
  padding: 1.25rem 1.5rem;
  border-radius: 4px;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.85rem;
  line-height: 1.6;
}

.inner-content pre code {
  background: none;
  padding: 0;
  color: inherit;
  border-radius: 0;
}

/* Strong / emphasis */
.inner-content strong { color: #1a1a1a; }

/* Definition list */
.inner-content dl { margin: 1.5rem 0; }
.inner-content dt { font-weight: 700; color: #1a1a1a; margin-top: 1rem; }
.inner-content dd { margin-left: 1.5rem; color: #555; margin-bottom: 0.5rem; }


/* -------------------------------------------------------------
   GUTENBERG BLOCK OVERRIDES
   ------------------------------------------------------------- */

/* Buttons block */
.inner-content .wp-block-button__link {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.06em;
  border-radius: 2px;
  transition: transform 0.2s, box-shadow 0.3s;
}

.inner-content .wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196, 30, 30, 0.3);
}

/* Separator */
.inner-content .wp-block-separator {
  border-top: 1px solid #e2e2e2;
  opacity: 1;
}

.inner-content .wp-block-separator.is-style-wide {
  border-top-width: 2px;
}

.inner-content .wp-block-separator.is-style-dots {
  border: none;
}

/* Columns */
.inner-content .wp-block-columns {
  margin-bottom: 1.5rem;
}

/* Cover block */
.inner-content .wp-block-cover {
  border-radius: 2px;
  margin: 2rem 0;
}

/* Gallery */
.inner-content .wp-block-gallery {
  margin: 2rem 0;
}

.inner-content .wp-block-gallery .wp-block-image img {
  border-radius: 2px;
}

/* Quote block (Gutenberg variant) */
.inner-content .wp-block-quote {
  border-left: 4px solid #c41e1e;
  padding: 1.25rem 1.5rem;
  background: #f6f6f6;
  border-radius: 0 2px 2px 0;
}

.inner-content .wp-block-quote.is-style-large {
  padding: 1.5rem 2rem;
  font-size: 1.2rem;
}

/* Pullquote */
.inner-content .wp-block-pullquote {
  border-top: 3px solid #c41e1e;
  border-bottom: 3px solid #c41e1e;
  padding: 2rem 0;
  margin: 2rem 0;
  text-align: center;
}

.inner-content .wp-block-pullquote blockquote {
  border-left: none;
  background: none;
  padding: 0;
}


/* -------------------------------------------------------------
   BREADCRUMBS
   ------------------------------------------------------------- */
.inner-hero nav[aria-label="Breadcrumb"] a {
  text-decoration: none;
}


/* -------------------------------------------------------------
   SIDEBAR
   ------------------------------------------------------------- */

/* Widget spacing */
.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.95rem;
}

.widget ul li:last-child {
  border-bottom: none;
}

.widget ul li a {
  color: #555;
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
}

.widget ul li a:hover {
  color: #c41e1e;
  padding-left: 0.25rem;
}

/* Search widget */
.widget .search-form {
  display: flex;
  gap: 0;
}

.widget .search-form .search-field {
  flex: 1;
  padding: 0.6rem 0.75rem;
  border: 2px solid #ddd;
  border-right: none;
  border-radius: 2px 0 0 2px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.widget .search-form .search-field:focus {
  border-color: #c41e1e;
}

.widget .search-form .search-submit {
  padding: 0.6rem 1rem;
  background: #c41e1e;
  color: #fff;
  border: none;
  border-radius: 0 2px 2px 0;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s;
}

.widget .search-form .search-submit:hover {
  background: #a51818;
}

/* Sticky sidebar form */
.sidebar-sticky {
  position: sticky;
  top: calc(var(--header-h, 80px) + 1.5rem);
}


/* -------------------------------------------------------------
   BLOG POST / SINGLE
   ------------------------------------------------------------- */

/* Post meta */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  color: #888;
  font-size: 0.85rem;
}

.post-meta a {
  color: #888;
  text-decoration: none;
  transition: color 0.2s;
}

.post-meta a:hover {
  color: #c41e1e;
}

.post-meta svg {
  width: 14px;
  height: 14px;
  opacity: 0.5;
}

/* Category / tag badges */
.post-tags a,
.post-categories a {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #f6f6f6;
  color: #555;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.post-tags a:hover,
.post-categories a:hover {
  background: #c41e1e;
  color: #fff;
}

/* Post navigation (prev / next) */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e5e5;
}

.post-nav a {
  display: block;
  padding: 1rem 1.25rem;
  background: #f6f6f6;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.post-nav a:hover {
  background: #eee;
  transform: translateY(-2px);
}

.post-nav-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #c41e1e;
  margin-bottom: 0.25rem;
}

.post-nav-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  color: #1a1a1a;
  line-height: 1.2;
}

.post-nav-next {
  text-align: right;
}

@media (max-width: 640px) {
  .post-nav {
    grid-template-columns: 1fr;
  }
}

/* Featured image on single post */
.post-featured-img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  margin-bottom: 2rem;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* Author box (optional) */
.author-box {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: #f6f6f6;
  border-radius: 2px;
  margin-top: 2rem;
}

.author-box img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-box-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: #0c0c0c;
}

.author-box-bio {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
  margin-top: 0.25rem;
}


/* -------------------------------------------------------------
   BLOG ARCHIVE / INDEX
   ------------------------------------------------------------- */

.blog-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.blog-card img {
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
  border-radius: 2px 2px 0 0;
}

/* Read more arrow */
.read-more {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.08em;
  color: #c41e1e;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s;
}

.read-more:hover {
  gap: 0.6rem;
}


/* -------------------------------------------------------------
   404 PAGE
   ------------------------------------------------------------- */
.page-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-404-code {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 8rem;
  line-height: 1;
  color: #e2e2e2;
  letter-spacing: 0.1em;
}

@media (min-width: 768px) {
  .page-404-code { font-size: 12rem; }
}


/* -------------------------------------------------------------
   SERVICE & CITY PAGE SPECIFICS
   ------------------------------------------------------------- */

/* Other services grid on service pages */
.other-services-card {
  padding: 1.25rem;
  background: #f6f6f6;
  border-radius: 2px;
  text-decoration: none;
  display: block;
  transition: background 0.2s, transform 0.2s;
}

.other-services-card:hover {
  background: #eee;
  transform: translateY(-2px);
}

/* City list on city pages */
.area-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  color: #555;
  background: #f6f6f6;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.area-link:hover {
  background: #c41e1e;
  color: #fff;
}

/* Trust badge row (used in sidebar / forms) */
.trust-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #888;
}

.trust-badge svg {
  width: 14px;
  height: 14px;
  color: #16a34a;
}


/* -------------------------------------------------------------
   PRINT STYLES
   ------------------------------------------------------------- */
@media print {
  .hdr, .mobile-cta, .btt, .cookie-banner,
  #scrollProgress, .mnav, .mnav-bg { display: none !important; }

  body { color: #000; background: #fff; }

  .inner-content a { color: #000; text-decoration: underline; }
  .inner-content a::after { content: ' (' attr(href) ')'; font-size: 0.8em; color: #666; }
}