/* LuxeShutters Blog — Pixel-perfect match with luxeshutters.com.au */
/* Every color, font, shadow, spacing extracted from the live site */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: hsl(210, 20%, 97%);
  --fg: hsl(215, 25%, 14%);
  --card: hsl(210, 20%, 99%);
  --primary: hsl(210, 65%, 42%);
  --primary-fg: hsl(210, 20%, 97%);
  --accent: hsl(24, 75%, 50%);
  --accent-fg: hsl(210, 20%, 97%);
  --muted: hsl(210, 14%, 93%);
  --muted-fg: hsl(215, 10%, 44%);
  --border: hsl(210, 15%, 88%);
  --text: #1a2332;
  --text-secondary: #2B3540;
  --font-heading: 'Inter', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --container: 720px;
  --container-wide: 1200px;
  --radius: 0.75rem;
  --shadow-soft: 0 2px 15px -3px hsl(210 65% 42% / 0.08), 0 4px 6px -4px hsl(210 65% 42% / 0.05);
  --shadow-card: 0 4px 25px -5px hsl(215 25% 14% / 0.06), 0 8px 10px -6px hsl(215 25% 14% / 0.04);
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  padding-top: 72px;
}
@media (min-width: 1024px) { body { padding-top: 116px; } }

.container { max-width: var(--container-wide); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* ====== STICKY CALL BAR ====== */
.call-bar {
  background: var(--fg);
  color: var(--primary-fg);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 110;
  display: none;
  box-shadow: var(--shadow-soft);
}
@media (min-width: 1024px) { .call-bar { display: block; } }
.call-bar-inner { max-width: var(--container-wide); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 2rem; }
.call-bar-left { display: flex; align-items: center; gap: 0.75rem; }
.call-bar-left svg { color: var(--accent); }
.call-bar-left a { font-weight: 600; font-size: 0.875rem; color: var(--primary-fg); text-decoration: none; transition: color 0.2s; }
.call-bar-left a:hover { color: var(--accent); }
.call-bar-left .tagline { font-size: 0.75rem; color: hsl(210 20% 97% / 0.6); display: none; }
@media (min-width: 1280px) { .call-bar-left .tagline { display: inline; } }
.call-bar-right { display: flex; align-items: center; gap: 1rem; }
.call-bar-right .serving { font-size: 0.75rem; color: hsl(210 20% 97% / 0.5); display: none; }
@media (min-width: 1280px) { .call-bar-right .serving { display: inline; } }
.btn-accent { display: inline-block; padding: 0.25rem 0.875rem; background: var(--accent); color: var(--accent-fg); font-size: 0.75rem; font-weight: 600; border-radius: var(--radius); text-decoration: none; transition: background 0.2s; height: 32px; line-height: 24px; }
.btn-accent:hover { background: hsl(24, 80%, 42%); }

/* ====== HEADER ====== */
.blog-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--bg);
  box-shadow: var(--shadow-soft);
  transition: all 0.3s;
}
@media (min-width: 1024px) { .blog-header { top: 44px; } }
.header-inner { max-width: var(--container-wide); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 1rem; }
@media (min-width: 1024px) { .header-inner { padding: 1rem 2rem; } }

.logo { text-decoration: none; display: flex; align-items: center; gap: 0.625rem; }
.logo-img { height: 36px; width: auto; }
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem; color: var(--text); line-height: 1.2; }
.logo-tagline { font-size: 0.625rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted-fg); display: none; }
@media (min-width: 640px) { .logo-tagline { display: block; } }

.header-nav { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 1024px) { .header-nav { display: flex; } }
.header-nav a { padding: 0.5rem 0.75rem; font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); text-decoration: none; border-radius: 0.5rem; transition: color 0.2s, background 0.2s; }
.header-nav a:hover, .header-nav a.active { color: var(--primary); background: hsl(210 65% 42% / 0.05); }
.header-nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: hsl(210 20% 97% / 0.98); backdrop-filter: blur(12px); border-top: 1px solid var(--border); padding: 1rem; z-index: 99; }
.header-nav.open a { padding: 0.75rem 1rem; text-align: left; color: hsl(215 25% 14% / 0.8); }
.header-nav.open a:hover { color: var(--primary); background: hsl(210 65% 42% / 0.05); }

.header-actions { display: none; align-items: center; gap: 0.75rem; }
@media (min-width: 1024px) { .header-actions { display: flex; } }
.phone-link { display: flex; align-items: center; gap: 0.375rem; font-size: 0.875rem; color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.phone-link:hover { color: var(--primary); }
.btn-primary { display: inline-block; padding: 0.625rem 1.25rem; background: var(--primary); color: var(--primary-fg); font-size: 0.875rem; font-weight: 500; border-radius: var(--radius); text-decoration: none; transition: background 0.2s; }
.btn-primary:hover { background: hsl(210, 65%, 38%); }
.mobile-toggle { display: block; background: none; border: none; cursor: pointer; color: var(--text); padding: 0.5rem; }
@media (min-width: 1024px) { .mobile-toggle { display: none; } }

/* ====== BLOG HERO (with image background like Services page) ====== */
.blog-hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
}
.blog-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.blog-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, hsl(210 65% 42% / 0.92), hsl(210 50% 25% / 0.88));
}
.blog-hero .container {
  position: relative;
  z-index: 1;
}
.blog-hero-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: hsl(210 20% 97% / 0.7);
  margin-bottom: 0.75rem;
}
.blog-hero h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1rem;
  max-width: 600px;
  text-wrap: balance;
}
@media (min-width: 640px) { .blog-hero h1 { font-size: 2.5rem; } }
@media (min-width: 1024px) { .blog-hero h1 { font-size: 3rem; } }
.blog-hero p {
  font-size: 1rem;
  color: hsl(210 20% 97% / 0.8);
  max-width: 500px;
  line-height: 1.65;
}

/* ====== BREADCRUMBS ====== */
.breadcrumbs { border-bottom: 1px solid var(--border); padding: 0.75rem 0; font-size: 0.8125rem; color: var(--muted-fg); }
.breadcrumbs .container { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.breadcrumbs a { color: var(--primary); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { opacity: 0.4; }

/* ====== POST GRID ====== */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 2rem; padding: 3rem 0; }
.post-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); transition: transform 0.2s, box-shadow 0.2s; text-decoration: none; color: inherit; display: block; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 10px 40px -10px hsl(215 25% 14% / 0.12); }
.post-card-img { width: 100%; height: 220px; object-fit: cover; display: block; }
.post-card-body { padding: 1.5rem; }
.post-card-category { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary); margin-bottom: 0.5rem; }
.post-card-title { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 600; line-height: 1.35; margin-bottom: 0.75rem; color: var(--text); }
.post-card-excerpt { font-size: 0.9375rem; color: var(--muted-fg); line-height: 1.6; margin-bottom: 1rem; }
.post-card-meta { font-size: 0.8125rem; color: var(--muted-fg); display: flex; gap: 1rem; }

/* ====== BLOG POST ====== */
.blog-main { padding: 2.5rem 0 4rem; }
.blog-post { max-width: var(--container); margin: 0 auto; background: var(--card); border-radius: var(--radius); padding: 2.5rem 2rem; box-shadow: var(--shadow-card); }
.blog-post h1 { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; line-height: 1.25; margin-bottom: 0.5rem; color: var(--text); }
.blog-post .post-meta { font-size: 0.875rem; color: var(--muted-fg); margin-bottom: 2rem; display: flex; align-items: center; gap: 0.5rem; }
.blog-post h2 { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; margin: 2.5rem 0 1rem; color: var(--text); line-height: 1.3; }
.blog-post h3 { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 600; margin: 2rem 0 0.75rem; color: var(--text); }
.blog-post p { margin-bottom: 1.25rem; }
.blog-post a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.blog-post a:hover { opacity: 0.8; }
.blog-post ul, .blog-post ol { margin: 1rem 0 1.5rem 1.5rem; }
.blog-post li { margin-bottom: 0.5rem; }
.blog-post img { max-width: 100%; height: auto; border-radius: var(--radius); display: block; }
.blog-post figure { margin: 2rem 0; }
.blog-post figcaption { font-size: 0.8125rem; color: var(--muted-fg); text-align: center; margin-top: 0.5rem; font-style: italic; }

/* Tables */
.blog-post table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9375rem; }
.blog-post thead th { background: var(--primary); color: #fff; font-weight: 600; text-align: left; padding: 0.75rem 1rem; font-size: 0.875rem; }
.blog-post thead th:first-child { border-radius: var(--radius) 0 0 0; }
.blog-post thead th:last-child { border-radius: 0 var(--radius) 0 0; }
.blog-post tbody td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); }
.blog-post tbody tr:hover { background: hsl(210 65% 42% / 0.02); }

/* Key Takeaways */
.key-takeaways { border-left: 4px solid var(--primary); background: hsl(210 65% 42% / 0.04); padding: 1.25rem 1.5rem; margin: 1.5rem 0; border-radius: 0 var(--radius) var(--radius) 0; }
.key-takeaways h3 { margin: 0 0 0.75rem 0; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-fg); font-weight: 600; }
.key-takeaways ul { margin: 0; padding-left: 1.25rem; }
.key-takeaways li { margin-bottom: 0.375rem; font-size: 0.9375rem; }

/* FAQ */
.faq-section { margin: 2.5rem 0; }
.faq-section h2 { border-bottom: 2px solid var(--primary); padding-bottom: 0.5rem; }
.faq-section h3 { font-size: 1.0625rem; color: var(--primary); margin: 1.5rem 0 0.5rem; }
.faq-section h3::before { content: "Q: "; font-weight: 700; }

/* CTA Box */
.blog-cta { background: linear-gradient(135deg, var(--primary), hsl(210, 50%, 30%)); color: #fff; padding: 2rem; border-radius: var(--radius); margin: 2.5rem 0; text-align: center; }
.blog-cta h3 { font-family: var(--font-heading); color: #fff; font-size: 1.375rem; margin-bottom: 0.75rem; }
.blog-cta p { opacity: 0.9; margin-bottom: 1.25rem; }
.blog-cta .cta-phone { display: block; font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 1rem; text-decoration: none; }
.blog-cta .btn-cta { display: inline-block; padding: 0.875rem 2rem; background: #fff; color: var(--primary); font-weight: 700; border-radius: var(--radius); text-decoration: none; font-size: 1rem; transition: transform 0.15s; }
.blog-cta .btn-cta:hover { transform: scale(1.03); }

/* Related Posts */
.related-posts { max-width: var(--container); margin: 3rem auto 0; }
.related-posts h2 { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; margin-bottom: 1.5rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }

/* ====== FOOTER ====== */
.blog-footer { background: var(--fg); color: var(--primary-fg); padding: 4rem 0 0; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }

.footer-brand .logo-name { color: #fff; font-size: 1.25rem; display: block; margin-bottom: 1rem; font-family: var(--font-heading); font-weight: 700; }
.footer-brand p { font-size: 0.875rem; color: hsl(210 20% 97% / 0.6); line-height: 1.6; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: hsl(210 20% 97% / 0.1); display: flex; align-items: center; justify-content: center; transition: background 0.2s; color: var(--primary-fg); text-decoration: none; }
.footer-social a:hover { background: hsl(210 65% 42% / 0.3); }
.footer-social svg { width: 16px; height: 16px; }

.blog-footer h4 { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 1rem; }
.footer-links a { display: block; color: hsl(210 20% 97% / 0.6); text-decoration: none; font-size: 0.875rem; margin-bottom: 0.625rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--primary-fg); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.625rem; font-size: 0.875rem; color: hsl(210 20% 97% / 0.6); margin-bottom: 0.75rem; }
.footer-contact-item svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--primary); }
.footer-contact-item a { color: hsl(210 20% 97% / 0.6); text-decoration: none; transition: color 0.2s; }
.footer-contact-item a:hover { color: var(--primary-fg); }
.footer-service-note { font-size: 0.75rem; color: hsl(210 20% 97% / 0.4); margin-top: 1rem; }
.footer-bottom { border-top: 1px solid hsl(210 20% 97% / 0.1); padding: 2rem 0; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-bottom p { font-size: 0.75rem; color: hsl(210 20% 97% / 0.4); }
.footer-bottom-links { display: flex; gap: 1rem; }
.footer-bottom-links a { font-size: 0.75rem; color: hsl(210 20% 97% / 0.4); text-decoration: none; transition: color 0.2s; }
.footer-bottom-links a:hover { color: hsl(210 20% 97% / 0.6); }

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .blog-post { padding: 1.5rem 1.25rem; border-radius: 0; }
  .blog-post h1 { font-size: 1.625rem; }
  .blog-post h2 { font-size: 1.3rem; }
  .post-grid { grid-template-columns: 1fr; }
  .blog-cta { padding: 1.5rem; }
  .blog-cta .cta-phone { font-size: 1.25rem; }
}

@media print {
  .call-bar, .blog-header, .blog-footer, .breadcrumbs, .related-posts, .blog-cta { display: none; }
  .blog-post { box-shadow: none; padding: 0; max-width: 100%; }
  body { background: #fff; padding-top: 0; }
}
