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

:root {
  --red:      #FC3C44;
  --red-dark: #B81828;
  --text:     #111111;
  --text-mid: #444444;
  --text-dim: #7a7268;
  --max-w:    960px;
}

html { scroll-behavior: smooth; }

body {
  background-color: #F4EEE7;
  background-image:
    radial-gradient(58vw 58vw at 10% -10%, rgba(252,60,68,0.18), transparent 60%),
    radial-gradient(52vw 52vw at 102% 2%, rgba(255,158,92,0.16), transparent 55%),
    radial-gradient(48vw 48vw at 88% 108%, rgba(252,60,68,0.12), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* ─── NAV ─────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 40px);
  max-width: 920px;
  background: rgba(255,255,255,0.4);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(0,0,0,0.09);
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07), inset 0 1px 0 rgba(255,255,255,0.95);
}
.nav-inner {
  position: relative;
  padding: 0 16px; height: 54px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
}
.nav-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.nav-wordmark { font-size: 15px; font-weight: 700; color: #111111; letter-spacing: -0.2px; }
.nav-menu { display: flex; align-items: center; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 500; color: #444444; text-decoration: none; transition: color 0.18s; }
.nav-links a:hover { color: #111111; }
.nav-links a.active { color: #111111; font-weight: 600; }
.nav-cta {
  background: #FC3C44; color: white; font-size: 13px; font-weight: 700;
  padding: 8px 18px; border-radius: 50px; text-decoration: none;
  white-space: nowrap; flex-shrink: 0; transition: opacity 0.18s;
}
.nav-cta:hover { opacity: 0.88; }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 4px;
  width: 34px; height: 34px; padding: 7px; background: none; border: none; cursor: pointer;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: #111111; border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ─── BLOG INDEX HEADER ───────────────────────────── */

.blog-header { padding: 132px 24px 40px; text-align: center; }
.blog-header h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; letter-spacing: -2px; margin-bottom: 14px; }
.blog-header p { font-size: 17px; color: var(--text-mid); max-width: 440px; margin: 0 auto; line-height: 1.65; }

/* ─── CATEGORY FILTER ─────────────────────────────── */

.cats { max-width: var(--max-w); margin: 0 auto 34px; padding: 0 24px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.cat-chip {
  font-size: 13px; font-weight: 600; color: var(--text-mid);
  padding: 8px 16px; border-radius: 50px; cursor: pointer;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
  transition: all 0.16s;
}
.cat-chip:hover { color: var(--text); }
.cat-chip.on { background: linear-gradient(180deg, #FF4D55, #E22630); color: #fff; border-color: transparent; box-shadow: 0 8px 20px rgba(252,60,68,0.3); }

/* ─── BLOG GRID ───────────────────────────────────── */

.blog-section { padding: 0 24px 110px; }
.blog-inner { max-width: var(--max-w); margin: 0 auto; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.blog-card {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: 22px; overflow: hidden; text-decoration: none; color: inherit;
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 14px 40px rgba(30,10,10,0.10), inset 0 1px 0 rgba(255,255,255,0.8);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 22px 54px rgba(30,10,10,0.16); }
.blog-card-img { width: 100%; aspect-ratio: 16/9; overflow: hidden; position: relative; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(252,60,68,0.34), transparent 60%); }
.blog-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.blog-card-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.blog-card-title { font-size: 17px; font-weight: 700; letter-spacing: -0.4px; line-height: 1.35; margin-bottom: 10px; }
.blog-card-excerpt { font-size: 14px; color: var(--text-mid); line-height: 1.6; flex: 1; }
.blog-card-meta { margin-top: 18px; font-size: 12px; color: var(--text-dim); }

/* ─── BLOG POST ───────────────────────────────────── */

.post-wrap { max-width: 760px; margin: 0 auto; padding: 96px 24px 0; }
.breadcrumb { font-size: 13px; color: var(--text-dim); margin-bottom: 22px; }
.breadcrumb a { color: var(--text-dim); text-decoration: none; }
.breadcrumb a:hover { color: var(--red); }

.post-head { margin-bottom: 26px; }
.post-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--red-dark);
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.6);
  padding: 6px 14px; border-radius: 50px; margin-bottom: 18px;
}
.post-head h1 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; letter-spacing: -1.4px; line-height: 1.12; margin-bottom: 16px; }
.post-meta { font-size: 14px; color: var(--text-dim); }

.post-hero {
  position: relative; margin: 8px 0 34px; height: 340px; border-radius: 26px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 20px 56px rgba(30,10,10,0.18), inset 0 1px 0 rgba(255,255,255,0.6);
}
.post-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(252,60,68,0.34), rgba(184,24,40,0.12) 55%, transparent); }

.post-body { font-size: 17px; color: var(--text-mid); line-height: 1.75; }
.post-body > p { margin-bottom: 20px; }
.post-body h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.8px; color: var(--text); margin: 40px 0 14px; }
.post-body h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.4px; color: var(--text); margin: 30px 0 10px; }
.post-body strong { color: var(--text); font-weight: 700; }
.post-body a { color: var(--red-dark); text-decoration: underline; text-underline-offset: 2px; }
.post-body ul, .post-body ol { margin: 0 0 22px; padding-left: 22px; }
.post-body li { margin-bottom: 10px; }
.post-body blockquote {
  margin: 26px 0; padding: 18px 24px;
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-left: 3px solid var(--red);
  border-radius: 0 16px 16px 0; font-size: 18px; color: var(--text); font-weight: 500;
}

/* comparison / callout table */
.compare {
  margin: 28px 0; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 14px 40px rgba(30,10,10,0.10);
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}
.compare table { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 13px 16px; text-align: left; border-bottom: 1px solid rgba(0,0,0,0.06); }
.compare th { background: rgba(252,60,68,0.1); font-weight: 700; color: var(--text); font-size: 13px; letter-spacing: 0.02em; }
.compare tr:last-child td { border-bottom: none; }
.compare td:first-child { font-weight: 600; color: var(--text); }

.callout {
  margin: 26px 0; padding: 18px 22px; border-radius: 16px; font-size: 15px; color: var(--text-mid); line-height: 1.65;
  background: linear-gradient(160deg, rgba(255,236,238,0.85), rgba(255,214,218,0.5));
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.6);
}
.callout strong { color: var(--red-dark); }

/* ─── EMAIL CAPTURE ───────────────────────────────── */

.capture {
  margin: 48px 0; padding: 34px;
  background: linear-gradient(160deg, rgba(255,255,255,0.72), rgba(255,240,240,0.5));
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(30,10,10,0.12), inset 0 1px 0 rgba(255,255,255,0.9);
  text-align: center;
}
.capture h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.6px; color: var(--text); margin-bottom: 8px; }
.capture > p { font-size: 15px; color: var(--text-mid); line-height: 1.6; max-width: 460px; margin: 0 auto 20px; }
.capture form { display: flex; gap: 10px; max-width: 420px; margin: 0 auto; }
.capture input {
  flex: 1; padding: 13px 16px; font-size: 15px; font-family: inherit;
  background: rgba(255,255,255,0.75); border: 1px solid rgba(255,255,255,0.7);
  border-radius: 12px; box-shadow: inset 0 1px 3px rgba(0,0,0,0.05); outline: none;
}
.capture input:focus { box-shadow: 0 0 0 3px rgba(252,60,68,0.14); }
.capture button {
  padding: 13px 22px; font-size: 15px; font-weight: 700; color: #fff; cursor: pointer;
  background: linear-gradient(180deg, #FF4D55, #E22630); border: none; border-radius: 12px;
  box-shadow: 0 10px 26px rgba(252,60,68,0.34), inset 0 1px 0 rgba(255,255,255,0.4);
  transition: filter 0.16s; white-space: nowrap;
}
.capture button:hover { filter: brightness(1.05); }
.capture .done { display: none; font-size: 15px; font-weight: 600; color: var(--red-dark); }
.capture.sent form { display: none; }
.capture.sent .done { display: block; }
.capture .fine { font-size: 12px; color: var(--text-dim); margin-top: 14px; }

/* ─── RELATED ─────────────────────────────────────── */

.related { max-width: 760px; margin: 0 auto; padding: 20px 24px 40px; }
.related h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.6px; margin-bottom: 18px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card {
  border-radius: 18px; overflow: hidden; text-decoration: none; color: inherit;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
  transition: transform 0.18s, box-shadow 0.18s;
  display: flex; flex-direction: column;
}
.related-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(30,10,10,0.14); }
.related-img { width: 100%; aspect-ratio: 16/9; overflow: hidden; position: relative; }
.related-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.related-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(252,60,68,0.3), transparent 60%); }
.related-txt { padding: 14px 16px 16px; }
.related-card .t { font-size: 15px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 6px; line-height: 1.3; }
.related-card .d { font-size: 13px; color: var(--text-mid); line-height: 1.5; }

/* ─── FOOTER ──────────────────────────────────────── */

footer { border-top: 1px solid rgba(0,0,0,0.08); padding: 32px 24px; text-align: center; margin-top: 40px; }
footer p { font-size: 13px; color: var(--text-dim); }
footer a { color: var(--text-mid); text-decoration: none; }

/* ─── MOBILE ──────────────────────────────────────── */

@media (max-width: 760px) {
  .nav { width: calc(100% - 24px); top: 12px; }
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: absolute; top: calc(100% + 10px); right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 6px;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(0,0,0,0.09);
    border-radius: 16px; padding: 10px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.14);
  }
  .nav.open .nav-menu { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-links a { display: block; padding: 12px 14px; border-radius: 10px; font-size: 15px; }
  .nav-links a:hover { background: rgba(0,0,0,0.04); }
  .nav-cta { text-align: center; padding: 13px 18px; font-size: 14px; }
  .blog-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .post-hero { height: 220px; }
  .capture form { flex-direction: column; }
}

@media (max-width: 1000px) and (min-width: 761px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
