/*
Theme Name: FireSmart WP
Author: Anna
Version: 1.0.0
Text Domain: firesmart
*/

:root {
  --fs-red: #d71920;
  --fs-red-dark: #a80f16;
  --fs-green: #12733d;
  --fs-ink: #16212f;
  --fs-muted: #647083;
  --fs-line: #e7ebf0;
  --fs-soft: #f5f7fa;
  --fs-gold: #f5b338;
  --fs-white: #fff;
  --fs-shadow: 0 16px 42px rgba(20, 28, 40, .10);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--fs-ink);
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  background: var(--fs-white);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.topbar { background: #111827; color: #e5e7eb; font-size: 13px; }
.topbar .wrap { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--fs-line); backdrop-filter: blur(10px); }
.navrow { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: 210px; max-height: 54px; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 4px; font-weight: 700; font-size: 14px; }
.nav a { padding: 12px 11px; border-radius: 6px; }
.nav a:hover { color: var(--fs-red); background: #fff3f3; }
.hotline { display: inline-flex; align-items: center; gap: 8px; color: var(--fs-red); font-weight: 800; white-space: nowrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; border-radius: 6px; background: var(--fs-red); color: #fff; font-weight: 800; border: 0; cursor: pointer; }
.btn:hover { background: var(--fs-red-dark); }
.hero { position: relative; min-height: 560px; display: grid; align-items: center; overflow: hidden; background: #111827; color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,12,18,.78), rgba(8,12,18,.50), rgba(8,12,18,.16)); z-index: 1; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .wrap { position: relative; z-index: 2; }
.hero-copy { max-width: 680px; padding: 56px 0 92px; }
.eyebrow { color: var(--fs-gold); font-weight: 900; text-transform: uppercase; font-size: 13px; }
h1 { font-size: clamp(36px, 6vw, 68px); line-height: 1.06; margin: 12px 0 18px; }
h2 { font-size: 32px; line-height: 1.22; margin: 0 0 14px; }
h3 { line-height: 1.28; }
.hero p { font-size: 18px; max-width: 620px; color: #eef2f6; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.btn.alt { background: #fff; color: var(--fs-ink); }
.section { padding: 64px 0; }
.section.soft { background: var(--fs-soft); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-head p { margin: 0; color: var(--fs-muted); max-width: 620px; }
.grid { display: grid; gap: 20px; }
.grid.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.posts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: #fff; border: 1px solid var(--fs-line); border-radius: 8px; overflow: hidden; box-shadow: 0 1px 0 rgba(20,28,40,.03); }
.card:hover { box-shadow: var(--fs-shadow); transform: translateY(-2px); transition: .18s ease; }
.thumb { aspect-ratio: 1 / 1; background: #f0f3f6; display: grid; place-items: center; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.card-body { padding: 16px; }
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 0; color: var(--fs-muted); font-size: 14px; }
.category-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cat-tile { border: 1px solid var(--fs-line); border-left: 4px solid var(--fs-red); border-radius: 8px; padding: 18px; background: #fff; font-weight: 800; min-height: 88px; }
.cat-tile span { display: block; color: var(--fs-muted); font-weight: 500; font-size: 13px; margin-top: 6px; }
.content-band { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: center; }
.panel-list { display: grid; gap: 12px; }
.panel-list div { padding: 16px 18px; border-radius: 8px; background: #fff; border: 1px solid var(--fs-line); }
.breadcrumbs { padding: 18px 0; color: var(--fs-muted); font-size: 14px; }
.page-hero { padding: 54px 0; background: linear-gradient(90deg, #151f2d, #26364b); color: #fff; }
.page-hero h1 { font-size: clamp(32px, 5vw, 52px); margin: 0 0 12px; }
.article { padding: 44px 0 72px; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 34px; align-items: start; }
.article-main { min-width: 0; }
.article-main .featured { border-radius: 8px; border: 1px solid var(--fs-line); margin-bottom: 24px; width: 100%; max-height: 520px; object-fit: contain; background: #fff; }
.rich-content { font-size: 16px; }
.rich-content table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.rich-content td, .rich-content th { border: 1px solid var(--fs-line); padding: 10px; vertical-align: top; }
.specs { border: 1px solid var(--fs-line); border-radius: 8px; overflow: hidden; }
.specs div { display: grid; grid-template-columns: 42% 58%; border-bottom: 1px solid var(--fs-line); }
.specs div:last-child { border-bottom: 0; }
.specs b, .specs span { padding: 11px 13px; }
.specs b { background: var(--fs-soft); }
.sidebar-card { border: 1px solid var(--fs-line); border-radius: 8px; padding: 18px; background: #fff; position: sticky; top: 96px; }
.site-footer { background: #111827; color: #e5e7eb; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 28px; }
.site-footer h3 { color: #fff; margin-top: 0; }
.site-footer a, .site-footer p { color: #d1d5db; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 18px; color: #9ca3af; font-size: 14px; }
.contact-box { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.contact-box > div { background: #fff; border: 1px solid var(--fs-line); border-radius: 8px; padding: 22px; }
@media (max-width: 980px) {
  .nav { display: none; }
  .grid.products, .grid.posts, .category-strip, .footer-grid, .content-band, .article-grid, .contact-box { grid-template-columns: 1fr 1fr; }
  .article-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .topbar .wrap, .navrow { align-items: flex-start; flex-direction: column; padding: 12px 0; }
  .hero { min-height: 520px; }
  .hero-copy { padding-bottom: 76px; }
  .grid.products, .grid.posts, .category-strip, .footer-grid, .content-band, .contact-box { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .brand img { width: 185px; }
}
