/* ============================================================
   style.css — Template 2 Wireframe
   Aesthetic: Editorial / Magazine — clean, structured, typographic
   Fonts: Playfair Display (headings) + DM Sans (body)
   Palette: Neutral wireframe — swap --accent per site
   ============================================================ */

/* ============================================================
   CSS VARIABLES
   Line 11: --accent — SWAP this value per site
   ============================================================ */
:root {
  --accent:        #ED234C;       /* SWAP: brand accent colour per site */
  --accent-light:  #fdeaee;       /* tint for backgrounds */
  --accent-dark:   #c41a3b;       /* darker shade for hover states */

  --dark:          #111111;       /* near-black — headings, hero */
  --dark-mid:      #1e1e1e;       /* footer background, dark sections */
  --mid:           #4a4a4a;       /* body text */
  --muted:         #767676;       /* secondary text, dates, labels */
  --border:        #e0e0e0;       /* dividers, card borders */
  --bg-light:      #f8f8f6;       /* alternate section background */
  --white:         #ffffff;

  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'DM Sans', system-ui, sans-serif;

  --radius:        6px;
  --radius-lg:     12px;
  --shadow-sm:     0 1px 4px rgba(0,0,0,0.08);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:     0 8px 32px rgba(0,0,0,0.12);

  --container:     1200px;
  --section-gap:   5rem;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--mid);
  background: var(--white);
  overflow-x: hidden;
  max-width: 100vw;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  content-visibility: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-dark);
}

ul {
  list-style: none;
}

/* Screen-reader-only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--dark);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; }

.accent {
  color: var(--accent);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-gap) 0;
}

.section-intro {
  max-width: 700px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-intro h2 {
  margin-bottom: 1rem;
}

.section-intro p {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  text-decoration: none;
  line-height: 1;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--white);
}

/* ============================================================
   TOP BAR
   Two columns: email left | hours + phone right
   ============================================================ */
.top-bar {
  background: #fef0f2;
  color: var(--mid);
  font-size: 0.8rem;
  padding: 0.45rem 0;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.top-bar-contact {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-bar-contact a {
  color: var(--mid);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}

.top-bar-contact a:hover {
  color: var(--accent);
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-bar-hours {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--mid);
}

.top-bar-right a {
  color: var(--mid);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}

.top-bar-right a:hover {
  color: var(--accent);
}

/* ============================================================
   HEADER — STATIC ON ALL PAGES
   White background, sticky, two-row: top-bar + main nav
   ============================================================ */

/* Shared nav-inner layout */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  width: calc(100% - 40px);
  margin: 0 auto;
  height: 72px;
  padding: 0 2rem;
  position: relative;
  z-index: 20;
}

/* Angled background via pseudo-element so dropdowns are never clipped */
.nav-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  clip-path: polygon(
    18px 0,
    100% 0,
    calc(100% - 18px) 100%,
    0 100%
  );
  z-index: -1;
}

/* Logo — shrinks to its own content, no fixed width */
.nav-logo {
  text-decoration: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding-right: 2rem;
}

.nav-logo-img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
  content-visibility: visible;
}

/* Static header — full-width sticky band, white box constrained to container width */
.site-header--static {
  position: absolute;
  top: 36px;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
}

.site-nav {
  position: relative;
  width: 100%;
  padding: 14px 0;
}

/* Nav menu — takes all remaining space, links centred within it */
.nav-menu {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  flex: 1;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu li {
  display: flex;
  align-items: stretch;
}

.nav-menu li a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--mid);
  padding: 0 1rem;
  display: flex;
  align-items: center;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s;
  text-decoration: none;
}

/* Red underline indicator on hover and active */
.nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.75rem;
  right: 0.75rem;
  height: 3px;
  background: var(--accent);
  border-radius: 3px 3px 0 0;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-menu li a:hover {
  color: var(--accent);
}

.nav-menu li a:hover::after,
.nav-menu li a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-menu li a[aria-current="page"] {
  color: var(--accent);
}

/* Right-side nav actions — shrinks to content, pushed to far right */
.nav-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding-left: 1.5rem;
}

.nav-search-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--mid);
  transition: color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.nav-search-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Angled CTA button — parallelogram shape, right edge slants forward */
.nav-cta-btn {
  background: var(--accent);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.6rem 1.5rem 0.6rem 1.25rem;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background 0.2s;
  white-space: nowrap;
  line-height: 1;
  height: 42px;
}

.nav-cta-btn:hover {
  background: var(--accent-dark);
  color: var(--white);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
}

.hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

@media (max-width: 767px) {
  .nav-hamburger { display: flex; }
  .nav-actions { display: none; }

  .site-nav {
    clip-path: none;  /* remove angle on mobile — full width */
    max-width: 100%;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    height: auto;
    padding: 1rem;
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    gap: 0.25rem;
    z-index: 200;
  }

  .nav-menu.is-open { display: flex; }

  .nav-menu li { display: block; }

  .nav-menu li a {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: var(--mid);
    height: auto;
  }

  .nav-menu li a::after { display: none; }

  .site-header--static { position: sticky; }

  .top-bar-hours { display: none; }
}

/* ============================================================
   HERO SECTION — Split layout
   Left: text content (eyebrow, H1, subtext, CTAs)
   Right: hero image
   Background: light pink/cream tint matching screenshot
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #fff5f7 0%, #fff0f2 40%, #fef6ee 100%);
  overflow: hidden;
  position: relative;
}

/* Decorative geometric shapes in background */
.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: 30%;
  width: 200px;
  height: 200px;
  background: rgba(237, 35, 76, 0.06);
  transform: rotate(45deg);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -40px;
  right: 15%;
  width: 140px;
  height: 140px;
  background: rgba(237, 35, 76, 0.04);
  transform: rotate(30deg);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  min-height: 82vh;
}

.hero-content {
  max-width: 560px;
}

.hero-eyebrow {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 1rem;
}

.hero-heading {
  color: var(--dark);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 0;
  line-height: 1.1;
}

/* Left red border accent on heading — using .hero-heading-wrap */
.hero-heading-wrap {
  padding-left: 1.2rem;
  border-left: 4px solid var(--accent);
  margin-bottom: 1.25rem;
}

.hero-heading em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  color: var(--mid);
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 460px;
  line-height: 1.7;
}

/* CTA buttons */
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* Primary: solid red pill */
.btn-hero-primary {
  background: var(--accent);
  color: var(--white);
  border: 2px solid var(--accent);
  border-radius: 4px;
  padding: 0.8rem 2rem;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s, transform 0.15s;
}

.btn-hero-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
}

/* Secondary: play button — circle icon + text */
.btn-hero-play {
  background: none;
  border: none;
  color: var(--dark);
  font-size: 0.95rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
  font-family: var(--font-body);
}

.btn-hero-play:hover {
  color: var(--accent);
}

.play-icon {
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  color: var(--accent);
  flex-shrink: 0;
  transition: box-shadow 0.2s, transform 0.15s;
}

.btn-hero-play:hover .play-icon {
  box-shadow: 0 6px 20px rgba(237,35,76,0.25);
  transform: scale(1.05);
}

/* Hero image — right column */
.hero-image-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  position: relative;
}

.hero-img {
  width: 100%;
  max-width: 520px;
  height: auto;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 3rem;
    padding-bottom: 0;
    gap: 1.5rem;
  }

  .hero-image-wrap {
    justify-content: center;
    max-height: 380px;
    overflow: hidden;
  }

  .hero-img {
    max-width: 320px;
  }

  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .btn-hero-primary { width: 100%; justify-content: center; }
}

/* ============================================================
   WHAT WE DO — 2x2 category card grid
   ============================================================ */
.what-we-do {
  background: var(--white);
}

/* ============================================================
   ABOUT SPLIT — 2-col image left, text right
   ============================================================ */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}

.about-split-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  object-fit: cover;
  display: block;
}

.about-split-heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--dark);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.about-split-content p {
  color: var(--mid);
  margin-bottom: 1.25rem;
  line-height: 1.75;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.about-list li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--mid);
  font-size: 0.95rem;
}

.about-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

@media (max-width: 767px) {
  .about-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}


/* ============================================================
   NEWSLETTER STRIP
   ============================================================ */
.newsletter-strip {
  background: var(--dark);
  padding: 4rem 0 6rem;
}

.newsletter-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.newsletter-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.newsletter-intro p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

.newsletter-form {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  max-width: 760px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.newsletter-field {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.newsletter-field label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

.newsletter-field input {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.newsletter-field input::placeholder {
  color: rgba(255,255,255,0.4);
}

.newsletter-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(237,35,76,0.25);
  background: rgba(255,255,255,0.12);
}

.newsletter-btn {
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-end;
}

@media (max-width: 767px) {
  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-field,
  .newsletter-btn {
    width: 100%;
  }
}

/* ============================================================
   POPULAR POSTS — 3-column row
   ============================================================ */
.popular-posts {
  background: var(--bg-light);
}

.popular-posts-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.popular-posts-header-left {
  max-width: 500px;
}

.popular-posts-header-left h2 {
  margin-top: 0.25rem;
}

.popular-posts-header-right {
  max-width: 320px;
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.post-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Post card */
.post-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.post-card-img-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-light);
}

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

.post-card:hover .post-card-img-wrap img {
  transform: scale(1.04);
}

.post-card-body {
  padding: 1.25rem 1.25rem 0;
  flex: 1;
}

.post-card-cat {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: inline-block;
}

.post-card-title {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.post-card-title a {
  color: var(--dark);
  text-decoration: none;
  transition: color 0.2s;
}

.post-card-title a:hover {
  color: var(--accent);
}

.post-card-excerpt {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.post-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.tag {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  background: var(--accent-light);
  color: var(--accent-dark);
  border-radius: 100px;
}

.post-card-footer {
  padding: 0.75rem 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.post-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap 0.2s;
}

.post-card-link:hover {
  gap: 0.5rem;
  color: var(--accent-dark);
}

@media (max-width: 1023px) {
  .popular-posts-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .popular-posts-header-right {
    max-width: 100%;
  }

  .post-cards-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .post-cards-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   BLOG PREVIEW — tailblocks-style cards, 2+3+3 grid
   ============================================================ */
.blog-preview {
  background: var(--white);
}

/* Grid wrappers */
.tb-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.tb-grid-2 {
  grid-template-columns: 1fr 1fr;
}

.tb-grid-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

/* Card */
.tb-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  transition: box-shadow 0.2s, transform 0.2s;
}

.tb-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.tb-card-img-wrap {
  overflow: hidden;
  background: var(--bg-light);
}

.tb-card-img-wrap img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.tb-card:hover .tb-card-img-wrap img {
  transform: scale(1.04);
}

.tb-card-body {
  padding: 1.5rem;
}

.tb-card-cat {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.tb-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.tb-card-title a {
  color: var(--dark);
  text-decoration: none;
  transition: color 0.2s;
}

.tb-card-title a:hover {
  color: var(--accent);
}

.tb-card-excerpt {
  font-size: 0.88rem;
  color: var(--mid);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.tb-card-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.tb-card-link {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-right: auto;
  transition: gap 0.2s;
}

.tb-card-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.tb-card-link:hover {
  gap: 0.5rem;
}

.tb-card-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--muted);
  padding-left: 0.75rem;
  border-left: 1px solid var(--border);
}

.tb-card-meta svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .tb-grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .tb-grid-2,
  .tb-grid-3 {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   SERVICE PAGE — hero, content + sidebar layout
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 0 3rem;
}

/* Breadcrumb */
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.breadcrumb li:not(:last-child)::after {
  content: '›';
  margin-left: 0.35rem;
  color: var(--border);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb li[aria-current="page"] {
  color: var(--mid);
  font-weight: 500;
}

.page-hero h1 {
  margin-bottom: 0.75rem;
}

.page-hero-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0;
}

/* Service content + sidebar grid */
.service-layout {
  background: var(--white);
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
}

.service-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.service-content h2:first-child {
  margin-top: 0;
}

.service-lead-img {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  object-fit: cover;
}

/* Content block with image */
.service-block {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
  margin: 2rem 0;
}

.service-block-img {
  border-radius: var(--radius);
  object-fit: cover;
  width: 100%;
}

.service-checklist {
  list-style: none;
  margin-top: 1rem;
}

.service-checklist li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  font-size: 0.95rem;
}

.service-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.service-cta-inline {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem;
  margin: 2.5rem 0;
}

.service-cta-inline p {
  margin-bottom: 1rem;
  font-weight: 500;
  color: var(--dark);
}

/* Sidebar */
.service-sidebar {
  position: sticky;
  top: 90px;
}

.sidebar-widget {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.sidebar-heading {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent);
}

.sidebar-contact {
  background: var(--accent);
  color: var(--white);
  text-align: center;
  border-color: var(--accent);
}

.sidebar-phone {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.sidebar-phone a {
  color: var(--white);
}

.sidebar-emergency {
  font-size: 0.8rem;
  opacity: 0.85;
  margin-bottom: 1.25rem;
}

.sidebar-btn {
  width: 100%;
  text-align: center;
  background: var(--white);
  color: var(--accent);
  border-color: var(--white);
}

.sidebar-btn:hover {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}

.sidebar-services {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-services li a {
  color: var(--mid);
  font-size: 0.9rem;
  padding: 0.4rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
  border-bottom: 1px solid var(--border);
}

.sidebar-services li:last-child a {
  border-bottom: none;
}

.sidebar-services li a::before {
  content: '→';
  color: var(--accent);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.sidebar-services li a:hover {
  color: var(--accent);
}

.sidebar-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--mid);
}

.sidebar-contact-list li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent);
}

.sidebar-contact-list a {
  color: var(--mid);
}

.sidebar-contact-list a:hover {
  color: var(--accent);
}

@media (max-width: 1023px) {
  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-sidebar {
    position: static;
  }
}

@media (max-width: 767px) {
  .service-block {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-header {
  margin-bottom: 1.5rem;
}

.faq-list {
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1.1rem 0;
  font-family: var(--font-body);
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-icon {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.2s;
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0;
}

.faq-answer p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: 1.25rem;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

/* ============================================================
   POST PAGE — layout, lead, bio, related posts
   ============================================================ */
.post-hero {
  background: var(--dark-mid);
  padding: 3.5rem 0 3rem;
}

.post-eyebrow {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.post-hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.post-meta {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Post body layout: content + sidebar */
.post-layout {
  background: var(--white);
}

.post-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

.post-content {
  min-width: 0;
}

.post-lead {
  font-size: 1.1rem;
  color: var(--mid);
  border-left: 4px solid var(--accent);
  padding-left: 1.25rem;
  margin-bottom: 2rem;
}

.post-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.post-content h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

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

.post-content figcaption {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.5rem;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2.5rem 0;
}

/* Bio block */
.bio-block {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2.5rem 0;
  border: 1px solid var(--border);
}

.bio-logo-placeholder {
  width: 60px;
  height: 60px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bio-logo-placeholder .logo-text {
  font-size: 1rem;
  color: var(--white);
}

.bio-site-name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.bio-desc {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
}

/* Related posts */
.related-posts {
  margin-top: 2.5rem;
}

.related-posts h3 {
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* Post sidebar */
.post-sidebar {
  position: sticky;
  top: 90px;
}

.sidebar-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sidebar-newsletter-form input,
.sidebar-newsletter-form .btn {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
}

.sidebar-newsletter-form input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
}

.sidebar-posts {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-posts li a {
  color: var(--mid);
  font-size: 0.875rem;
  padding: 0.4rem 0 0.4rem 1.25rem;
  display: block;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
  position: relative;
}

.sidebar-posts li:last-child a {
  border-bottom: none;
}

.sidebar-posts li a::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
}

.sidebar-posts li a:hover {
  color: var(--accent);
}

.sidebar-cta {
  background: var(--accent);
  border-color: var(--accent);
  text-align: center;
}

.sidebar-cta-text {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 1rem;
}

.sidebar-cta .sidebar-btn {
  background: var(--white);
  color: var(--accent);
  border-color: var(--white);
}

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

  .post-sidebar {
    position: static;
  }
}

@media (max-width: 767px) {
  .related-posts-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   FOOTER — 4 col grid top + bottom bar
   ============================================================ */
.site-footer {
  background: var(--dark-mid);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.4fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav li a:hover {
  color: var(--white);
}

/* Subscribe column */
.footer-subscribe-label {
  display: block;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.4rem;
}

.footer-subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-subscribe-form input {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.07);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.875rem;
  transition: border-color 0.2s, background 0.2s;
}

.footer-subscribe-form input::placeholder {
  color: rgba(255,255,255,0.35);
}

.footer-subscribe-form input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,0.1);
}

.footer-subscribe-btn {
  width: 100%;
}

.footer-subscribe-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.6rem;
  line-height: 1.5;
}

/* Bottom bar */
.footer-bottom {
  padding: 1.5rem 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.footer-logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 400;
}

.footer-logo-text strong {
  color: var(--accent);
  font-weight: 700;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  margin: 0;
}

.footer-copy a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-copy a:hover {
  color: var(--white);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-social a {
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  transition: color 0.2s;
}

.footer-social a svg {
  width: 18px;
  height: 18px;
}

.footer-social a:hover {
  color: var(--white);
}

@media (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}


/* ============================================================
   BLOG INDEX — compact hero + masonry grid + filter
   ============================================================ */

/* Compact hero */
.blog-index-hero {
  background: linear-gradient(135deg, #fff5f7 0%, #fef0f2 100%);
  padding: 7rem 0 2.5rem;
  border-bottom: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.blog-index-hero-inner {
  max-width: var(--container);
}

.blog-index-heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--dark);
  margin: 0.5rem 0 0.75rem;
  line-height: 1.15;
}

.blog-index-sub {
  color: var(--mid);
  font-size: 1rem;
  max-width: 520px;
}

/* Breadcrumb */
.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.breadcrumb ol li + li::before {
  content: '/';
  margin-right: 0.5rem;
  color: var(--border);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--accent);
}

/* Filter bar */
.blog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.blog-filter-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.4rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--mid);
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.blog-filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.blog-filter-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

/* Masonry grid — CSS grid with auto rows */
.blog-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.blog-masonry-card {
  break-inside: avoid;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow 0.2s, transform 0.2s;
  display: block;
}

.blog-masonry-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Hidden state for filtered cards */
.blog-masonry-card.is-hidden {
  display: none;
}

.bmc-img-link {
  display: block;
  text-decoration: none;
}

.bmc-img-wrap {
  overflow: hidden;
  background: var(--bg-light);
}

.bmc-img-wrap img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

/* Tall variant — gives masonry the height variation */
.bmc-img-wrap--tall img {
  aspect-ratio: 4 / 3;
}

.blog-masonry-card:hover .bmc-img-wrap img {
  transform: scale(1.04);
}

.bmc-body {
  padding: 1.25rem;
}

.bmc-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.bmc-cat:hover {
  color: var(--accent-dark);
}

.bmc-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.bmc-title a {
  color: var(--dark);
  text-decoration: none;
  transition: color 0.2s;
}

.bmc-title a:hover {
  color: var(--accent);
}

.bmc-excerpt {
  font-size: 0.875rem;
  color: var(--mid);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.bmc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.bmc-date {
  font-size: 0.75rem;
  color: var(--muted);
}

.bmc-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

.bmc-link:hover {
  color: var(--accent-dark);
}

.blog-no-results {
  text-align: center;
  padding: 3rem 0;
  color: var(--muted);
  font-size: 1rem;
}

@media (max-width: 900px) {
  .blog-masonry { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .blog-masonry { grid-template-columns: 1fr; }
  .blog-index-hero { padding: 2rem 0; }
}

/* ============================================================
   POST HERO — short hero for post/content pages
   Header is now static, so no overlay/wrap needed.
   Background image set inline via PHP: style="background-image: url(...)"
   ============================================================ */
.post-hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  background-color: var(--dark);
  padding-top: 120px; /* clears the absolute nav + top bar */
}

.post-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(5,5,5,0.82) 0%,
    rgba(5,5,5,0.45) 50%,
    rgba(5,5,5,0.20) 100%
  );
}

.post-hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 3rem;    /* no nav to clear — just breathing room */
  padding-bottom: 2.5rem;
  width: 100%;
}

.post-hero-eyebrow {
  color: rgba(255,255,255,0.7);
  display: block;
  margin-bottom: 0.6rem;
}

.post-hero-heading {
  color: var(--white);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  max-width: 800px;
  line-height: 1.2;
  margin-bottom: 0.85rem;
}

.post-hero-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
}

@media (max-width: 767px) {
  .post-hero { min-height: 38vh; }
}

/* ============================================================
   POST BREADCRUMB BAR
   Sits below post hero, above the content grid
   ============================================================ */
.post-breadcrumb-bar {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
}

/* Breadcrumb shared styles (also used on service page) */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  font-size: 0.82rem;
  color: var(--muted);
}

.breadcrumb li:not(:last-child)::after {
  content: '›';
  margin-left: 0.35rem;
  color: var(--border);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover { color: var(--accent); }

.breadcrumb li[aria-current="page"] {
  color: var(--mid);
  font-weight: 500;
}

/* ============================================================
   POST LAYOUT — content + sidebar grid
   ============================================================ */
.post-layout {
  background: var(--white);
}

.post-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3.5rem;
  align-items: start;
}

/* ── Article content ── */
.post-content {
  min-width: 0;
}

.post-lead {
  font-size: 1.1rem;
  color: var(--mid);
  border-left: 4px solid var(--accent);
  padding-left: 1.25rem;
  margin-bottom: 2rem;
  line-height: 1.75;
}

.post-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.post-content h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.post-content p { margin-bottom: 1.1rem; }

.post-figure {
  margin: 2rem 0;
}

.post-figure img {
  width: 100%;
  border-radius: var(--radius);
}

.post-figure figcaption {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
}

.post-blockquote {
  border-left: 4px solid var(--accent);
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: var(--accent-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--dark);
  line-height: 1.6;
}

.post-checklist {
  list-style: none;
  margin: 1rem 0 1.5rem;
}

.post-checklist li {
  padding: 0.4rem 0 0.4rem 1.75rem;
  position: relative;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}

.post-checklist li:last-child { border-bottom: none; }

.post-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.post-cta-inline {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem;
  margin: 2.5rem 0;
}

.post-cta-inline p {
  margin-bottom: 1rem;
  font-weight: 500;
  color: var(--dark);
}

/* Post tags row */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2.5rem 0;
}

/* Related posts meta row inside card */
.post-card-meta-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.post-card-date {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Related posts section */
.related-posts {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}

.related-posts-title {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 600px) {
  .related-posts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1023px) {
  .post-grid {
    grid-template-columns: 1fr;
  }
  .post-sidebar { position: static; }
}

/* ============================================================
   POST SIDEBAR
   ============================================================ */
.post-sidebar {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-widget {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  border: 1px solid var(--border);
}

.sidebar-heading {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 1.1rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--accent);
}

/* ── Thumbnail post list ── */
.sidebar-thumb-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-thumb-item {
  border-bottom: 1px solid var(--border);
}

.sidebar-thumb-item:last-child {
  border-bottom: none;
}

.sidebar-thumb-link {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 0;
  text-decoration: none;
  transition: opacity 0.2s;
}

.sidebar-thumb-link:hover { opacity: 0.8; }

.sidebar-thumb-img {
  flex-shrink: 0;
  width: 72px;
  height: 56px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--border);
}

.sidebar-thumb-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-thumb-body {
  flex: 1;
  min-width: 0;
}

.sidebar-thumb-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--white);
  padding: 0.15rem 0.45rem;
  border-radius: 100px;
  margin-bottom: 0.3rem;
}

.sidebar-thumb-badge--new {
  background: var(--dark);
}

.sidebar-thumb-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--dark);
  line-height: 1.35;
  margin: 0 0 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-thumb-date {
  font-size: 0.72rem;
  color: var(--muted);
}

/* ── Category tags ── */
.sidebar-categories .sidebar-heading {
  margin-bottom: 1rem;
}

.sidebar-cat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sidebar-cat-tag {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  background: var(--white);
  color: var(--mid);
  border: 1px solid var(--border);
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.sidebar-cat-tag:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* ── Sidebar newsletter ── */
.sidebar-newsletter {
  background: var(--dark-mid);
  border-color: var(--dark-mid);
  text-align: center;
}

.sidebar-newsletter-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.sidebar-newsletter .sidebar-heading {
  color: var(--white);
  border-bottom-color: var(--accent);
}

.sidebar-newsletter-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1rem;
}

.sidebar-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sidebar-newsletter-form input {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.875rem;
}

.sidebar-newsletter-form input::placeholder {
  color: rgba(255,255,255,0.4);
}

.sidebar-newsletter-form input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  background: rgba(255,255,255,0.12);
}

.sidebar-newsletter-form .btn {
  width: 100%;
}

/* ============================================================
   CONTACT PAGE
   Two-column layout: form left, info panel right
   ============================================================ */

/* Hero variant — uses solid dark background, no image required */
.contact-hero {
  background-image: none !important;
  background: var(--dark-mid);
}

.post-hero-sub {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  max-width: 540px;
  margin-top: 0.5rem;
  line-height: 1.65;
}

/* Two-col layout */
.contact-section {
  background: var(--bg-light);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}

/* Form column */
.contact-heading {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.contact-intro {
  color: var(--mid);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* Alert messages */
.contact-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.contact-alert--success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.contact-alert--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* Form fields */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dark);
}

.required {
  color: var(--accent);
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--dark);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}

.contact-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23767676' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.contact-field textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.6;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #bbb;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(237,35,76,0.1);
}

/* Checkbox consent */
.contact-consent {
  gap: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--mid);
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}

.checkbox-label a {
  color: var(--accent);
  text-decoration: underline;
}

/* Field error */
.field-error {
  font-size: 0.78rem;
  color: #dc2626;
  min-height: 1em;
}

/* Honeypot */
.contact-honeypot {
  display: none;
}

/* Submit button */
.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 0.9rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  width: 100%;
  margin-top: 0.5rem;
}

.contact-submit:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.contact-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Info panel */
.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.contact-info-card p {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.65;
  margin: 0;
}

.contact-info-card--accent {
  background: var(--accent-light);
  border-color: #f5c6cf;
}

.contact-info-heading {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.contact-info-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--mid);
}

.contact-info-list li svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-info-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .contact-row {
    grid-template-columns: 1fr;
  }

  .contact-info-col {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   404 PAGE
   ============================================================ */
.error-404 {
  text-align: center;
  background: var(--bg-light);
}

.error-404-inner {
  max-width: 600px;
  margin: 0 auto;
}

.error-404-code {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(5rem, 15vw, 9rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.25rem;
  opacity: 0.15;
}

.error-404-heading {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--dark);
  margin-bottom: 1rem;
}

.error-404-sub {
  color: var(--mid);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.error-404-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.error-404-nav {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

.error-404-nav-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.error-404-nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.error-404-nav ul li a {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.error-404-nav ul li a:hover {
  color: var(--accent-dark);
}

/* ============================================================
   PROSE LAYOUT — privacy, terms, about, static content pages
   ============================================================ */
.prose-layout {
  max-width: 800px;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--dark);
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.prose ul,
.prose ol {
  color: var(--mid);
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.prose ul li,
.prose ol li {
  margin-bottom: 0.4rem;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.prose a:hover {
  color: var(--accent-dark);
}

.prose strong {
  color: var(--dark);
  font-weight: 600;
}

/* ============================================================
   SOURCES & FURTHER READING
   Matches ninjafitness layout — branded to red accent
   ============================================================ */
.sources-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.sources-heading {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.sources-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.source-item {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}

.source-item:last-child {
  border-bottom: none;
}

.source-item p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--mid);
}

.source-item em {
  font-style: italic;
}

.source-link {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent) !important;
  text-decoration: none;
  transition: opacity 0.2s;
}

.source-link:hover {
  opacity: 0.75;
  text-decoration: none;
}

/* ============================================================
   NAV DROPDOWNS
   ============================================================ */
.nav-has-dropdown {
  position: relative;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  padding: 0.5rem 0;
  z-index: 200;
  list-style: none;
  margin: 0;
}

.nav-has-dropdown.is-open > .nav-dropdown {
  display: block;
}

/* Override nav-menu li flex for dropdown items */
.nav-menu li.nav-has-dropdown > .nav-dropdown > li,
.nav-dropdown > li {
  display: block !important;
  align-items: unset;
  height: auto;
}

.nav-menu li.nav-has-dropdown > .nav-dropdown > li > a,
.nav-dropdown > li > a {
  display: block !important;
  padding: 0.6rem 1.25rem !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: var(--mid) !important;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  line-height: 1.4;
  height: auto !important;
}

.nav-menu li.nav-has-dropdown > .nav-dropdown > li > a::after,
.nav-dropdown > li > a::after {
  display: none !important;
}

.nav-menu li.nav-has-dropdown > .nav-dropdown > li > a:hover,
.nav-dropdown > li > a:hover {
  background: var(--light) !important;
  color: var(--accent) !important;
}

.nav-chevron {
  display: inline-block;
  margin-left: 4px;
  vertical-align: middle;
  transition: transform 0.2s;
}

.nav-has-dropdown.is-open .nav-chevron {
  transform: rotate(180deg);
}

/* Mobile dropdowns */
@media (max-width: 900px) {
  .nav-dropdown {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    border-left: 2px solid var(--accent);
    margin-left: 1rem;
    padding: 0;
    background: transparent;
  }

  .nav-menu li.nav-has-dropdown > .nav-dropdown > li > a,
  .nav-dropdown > li > a {
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem !important;
  }
}

/* Hero keyword sub-heading — sits between H1 and hero-sub paragraph */
.hero-eyebrow-sub {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin: 0.5rem 0 1rem;
}
