/* ============================================================
   BRANDS TREE FELLING - Blog Styles
   Used by: /blog/index.html and all individual posts
   ============================================================ */

:root {
  --red: #c41e1e;
  --red-dark: #8f1515;
  --red-light: #e84545;
  --black: #1a1a1a;
  --charcoal: #2a2a2a;
  --cream: #faf7f2;
  --sand: #ede5d5;
  --warm-grey: #6b6b6b;
  --text-body: #2c2c2c;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
  --shadow-red: 0 6px 20px rgba(196, 30, 30, 0.25);
  --max-width: 720px;
  --wide-width: 1140px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-body);
  background: var(--cream);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--black);
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); text-decoration: underline; }

/* ============ HEADER ============ */
.blog-header {
  background: var(--white);
  border-bottom: 3px solid var(--red);
  padding: 14px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.blog-header-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.blog-logo img { height: 48px; width: auto; }

.blog-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.blog-nav a {
  color: var(--black);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.2s ease;
}

.blog-nav a:hover { color: var(--red); }
.blog-nav a.active { color: var(--red); }

.blog-nav-cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: 6px;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background 0.2s ease;
}

.blog-nav-cta:hover {
  background: var(--red-dark);
  color: var(--white) !important;
  text-decoration: none;
}

/* Mobile nav */
@media (max-width: 720px) {
  .blog-nav { gap: 12px; }
  .blog-nav a:not(.blog-nav-cta) { display: none; }
  .blog-logo img { height: 42px; }
  .blog-nav-cta { padding: 8px 14px; font-size: 13px; }
}

/* ============ BLOG LANDING ============ */
.blog-hero {
  background: linear-gradient(135deg, var(--black) 0%, var(--red-dark) 100%);
  color: var(--white);
  padding: 70px 22px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 30, 30, 0.4) 0%, transparent 70%);
}

.blog-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.blog-hero .eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red-light);
  margin-bottom: 14px;
}

.blog-hero h1 {
  font-size: clamp(32px, 6vw, 48px);
  margin-bottom: 14px;
  text-transform: uppercase;
  color: var(--white);
  font-weight: 700;
}

.blog-hero p {
  font-size: 17px;
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto;
}

/* Post grid */
.posts-section {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 60px 22px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.post-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.post-card a { color: inherit; text-decoration: none; }

.post-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--sand);
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-card:hover .post-card-image img {
  transform: scale(1.05);
}

.post-card-body {
  padding: 24px 22px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--warm-grey);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 600;
}

.post-card-meta .dot {
  width: 4px;
  height: 4px;
  background: var(--red);
  border-radius: 50%;
}

.post-card h2 {
  font-size: 22px;
  margin-bottom: 10px;
  line-height: 1.25;
  color: var(--black);
}

.post-card:hover h2 { color: var(--red); }

.post-card-excerpt {
  font-size: 15px;
  color: var(--warm-grey);
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}

.post-card-readmore {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ============ ARTICLE PAGE ============ */
.article-hero {
  background: linear-gradient(rgba(26, 26, 26, 0.55), rgba(92, 13, 13, 0.55)), var(--black);
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 80px 22px 100px;
  position: relative;
}

.article-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.article-breadcrumb {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 18px;
}

.article-breadcrumb a {
  color: var(--red-light);
  text-decoration: none;
}

.article-hero h1 {
  font-size: clamp(30px, 5vw, 44px);
  color: var(--white);
  margin-bottom: 18px;
  line-height: 1.15;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  opacity: 0.9;
}

.article-meta .dot {
  width: 4px;
  height: 4px;
  background: var(--red-light);
  border-radius: 50%;
}

/* Article body */
.article-body {
  max-width: var(--max-width);
  margin: -60px auto 0;
  background: var(--white);
  padding: 50px 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}

.article-body > p,
.article-body > ul,
.article-body > ol,
.article-body > blockquote,
.article-body > h2,
.article-body > h3,
.article-body > figure {
  margin-bottom: 22px;
}

.article-body p {
  font-size: 17px;
  line-height: 1.75;
}

.article-body p.lead {
  font-size: 20px;
  line-height: 1.55;
  color: var(--black);
  font-weight: 500;
  margin-bottom: 32px;
}

.article-body h2 {
  font-size: 28px;
  margin-top: 44px;
  margin-bottom: 16px;
  color: var(--black);
  padding-top: 8px;
  border-top: 3px solid var(--red);
  padding-top: 24px;
}

.article-body h2:first-of-type { margin-top: 32px; }

.article-body h3 {
  font-size: 22px;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--black);
}

.article-body ul,
.article-body ol {
  padding-left: 22px;
}

.article-body li {
  margin-bottom: 10px;
  line-height: 1.65;
}

.article-body strong { color: var(--black); }

.article-body blockquote {
  background: var(--cream);
  border-left: 4px solid var(--red);
  padding: 22px 24px;
  margin: 32px 0;
  font-style: italic;
  font-size: 18px;
  line-height: 1.55;
  color: var(--black);
  border-radius: 0 8px 8px 0;
}

.article-body figure {
  margin: 32px -40px;
}

.article-body figure img,
.article-body figure video {
  width: 100%;
  height: auto;
  display: block;
}

.article-body figcaption {
  font-size: 13px;
  color: var(--warm-grey);
  text-align: center;
  padding: 12px 40px 0;
  font-style: italic;
}

/* Callout box */
.callout {
  background: linear-gradient(135deg, var(--black) 0%, var(--red-dark) 100%);
  color: var(--white);
  padding: 30px 28px;
  border-radius: 12px;
  margin: 36px 0;
  text-align: center;
}

.callout h3 {
  color: var(--white);
  font-size: 22px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.callout p {
  color: rgba(255, 255, 255, 0.92) !important;
  margin-bottom: 18px !important;
  font-size: 16px !important;
}

.callout-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.callout-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.callout-btn-call {
  background: var(--red);
  color: var(--white) !important;
}

.callout-btn-whatsapp {
  background: #25D366;
  color: var(--white) !important;
}

.callout-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

/* Final CTA at bottom of article */
.article-cta {
  background: var(--black);
  color: var(--white);
  padding: 60px 22px;
  margin-top: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.article-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(196, 30, 30, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(232, 69, 69, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.article-cta-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.article-cta h2 {
  color: var(--white);
  font-size: 32px;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.article-cta p {
  font-size: 17px;
  opacity: 0.9;
  margin-bottom: 28px;
}

.article-cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.article-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  min-width: 200px;
  justify-content: center;
}

.article-cta-btn-call {
  background: var(--red);
  color: var(--white) !important;
  box-shadow: var(--shadow-red);
}

.article-cta-btn-whatsapp {
  background: #25D366;
  color: var(--white) !important;
}

.article-cta-btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

/* Related posts */
.related-posts {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 60px 22px;
}

.related-posts h3 {
  font-size: 22px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 30px;
  color: var(--black);
}

/* ============ FOOTER ============ */
.blog-footer {
  background: #000;
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 22px 24px;
  text-align: center;
  font-size: 13px;
  line-height: 1.8;
}

.blog-footer a {
  color: var(--red-light);
  text-decoration: none;
  font-weight: 600;
}

.blog-footer-nav {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.blog-footer-brand {
  display: block;
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  font-size: 15px;
}

/* ============ MOBILE ADJUSTMENTS ============ */
@media (max-width: 720px) {
  .blog-hero { padding: 50px 22px 40px; }
  .posts-section { padding: 40px 18px; }
  .posts-grid { gap: 22px; }
  .article-hero { padding: 50px 22px 80px; }
  .article-body {
    padding: 30px 22px;
    margin: -50px 16px 0;
    border-radius: 10px;
  }
  .article-body figure { margin: 24px -22px; }
  .article-body figcaption { padding: 10px 22px 0; }
  .article-cta { padding: 50px 22px; }
  .article-cta h2 { font-size: 26px; }
  .article-cta-btn {
    width: 100%;
    min-width: 0;
  }
  .related-posts { padding: 40px 18px; }
}
